Function isParentOfChild

  • Returns if the target is a "parent" that has in its tree the given "child" object.

    Parameters

    • parent: object

      Target object.

    • child: object

      Child object.

    Returns boolean