Function getPath

  • Get the parent node and path from parent to child for a node. If the parent is unknown, it will look in the configuration for the root node and update the parent pointers for the entire tree.

    Parameters

    • node: Node

      The node to get the parent and path of

    Returns {
        node: Node;
        path: (string | number)[];
    }

    An object containing the parent node and the property name of the child node in the parent, or undefined if the node's parent is unknown

    • node: Node
    • path: (string | number)[]

Generated using TypeDoc