Function treeGetAncestorsTrail

  • Gets an array containing all the ancestors of the given node in an ascending order.

    Type Parameters

    • T extends {
          parent?: T;
      }

    Parameters

    • node: T

      The node from which to extract the ancestor trail.

    • comparator: TreeComparator<T>

      The tree nodes comparator.

    Returns T[]

    an array containing all the ancestors of the given node in an ascending order.

Generated using TypeDoc