Function treeTruncate

  • Truncates the given tree from the given node.

    Type Parameters

    • T

    Parameters

    • tree: Tree<T>

      The tree to truncate.

    • from: T

      The node to truncate the tree from.

    • comparator: TreeComparator<T>

      The tree nodes comparator.

    Returns undefined | Tree<T>

    the truncated tree.

Generated using TypeDoc