Function getRootPath

  • Returns the root of the target plus the path from the root to get to the target.

    Note that this function will throw if the passed object is not a node.

    Type Parameters

    • T extends object

      Root object type.

    Parameters

    • node: object

      Target object.

    Returns RootPath<T>