Returns true if prospectiveParent is the immediate parent of child.
prospectiveParent
child
Use hasAnyParent to check for any ancestor parent.
Returns true if
prospectiveParent
is the immediate parent ofchild
.Use hasAnyParent to check for any ancestor parent.