Documentation - v19.12.0-dev
    Preparing search index...
    • Generator yielding the ancestors of node, from its immediate parent up to the root, using the given getParent accessor.

      Type Parameters

      Parameters

      • node: TNode

        The node to walk up from.

      • getParent: (node: TNode) => TNode | null

        Returns the parent of a given node, or null for a root node.

      Returns Generator<TNode>