Returns true if child exists within possibleParent. By default it only looks at the immediate parent (maxDepth: 0). Use Number.MAX_SAFE_INTEGER for searching recursively upwards (or hasAnyParent)
child
possibleParent
Child being sought
Possible parent of child
Equality comparison function. isEqualDefault used by default.
Max depth of traversal. Default of 0 only looks for immediate parent.
Returns true if
child
exists withinpossibleParent
. By default it only looks at the immediate parent (maxDepth: 0). Use Number.MAX_SAFE_INTEGER for searching recursively upwards (or hasAnyParent)