Documentation - v19.12.0-dev
    Preparing search index...
    • Generator yielding nodes and all of their descendants (depth-first), using the given getChildren accessor to traverse each node's children.

      Type Parameters

      Parameters

      • nodes: TNode[]

        The root nodes to traverse.

      • getChildren: (node: TNode) => Iterable<TNode>

        Returns the children of a given node.

      Returns Generator<TNode, void, any>