Function isChildOfParent

  • Returns if the target is a "child" of the tree of the given "parent" node.

    Parameters

    • child: object

      Target node.

    • parent: object

      Parent node.

    Returns boolean