Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "module/tree/treeMapping"

Index

Interfaces

Functions

Functions

treeMapping

  • treeMapping<T>(root: T, __namedParameters?: object): INode
  • 遍历并映射一棵树的每个节点

    Type parameters

    • T

    Parameters

    • root: T

      树节点

    • Default value __namedParameters: object = {}
      • after: function
      • before: function
          • (node: T, ...args: any[]): INode
          • Parameters

            • node: T
            • Rest ...args: any[]

            Returns INode

      • paramFn: function
        • paramFn(node: INode, ...args: any[]): never[]

    Returns INode

    递归遍历后的树节点

Generated using TypeDoc