• 映射一棵 ast 树 注:其中会执行真实的修改操作

    Returns

    Type Parameters

    • T extends Node<Data, T>

    Parameters

    • tree: T
    • fn: ((node: Node<Data>, i: number, parent?: Parent) => Node<Data>[])
        • (node: Node<Data>, i: number, parent?: Parent): Node<Data>[]
        • Parameters

          • node: Node<Data>
          • i: number
          • Optional parent: Parent

          Returns Node<Data>[]

    Returns T

Generated using TypeDoc