• Collects all node ids within a tree given by a respective root node

    Type Parameters

    Parameters

    • nodes: undefined | RNode<OtherInfo> | (RNode<OtherInfo> | null | undefined)[]

      The root id nodes to start collecting from

    • OptionalonVisit: OnEnter<OtherInfo>

      Called before visiting the subtree of each node. Can be used to stop visiting the subtree starting with this node (return true stop)

    • OptionalonExit: OnExit<OtherInfo>

      Called after the subtree of a node has been visited, called for leafs too (even though their subtree is empty)

    Returns void