Returns true if prospectiveParent is the immediate parent of child.

Use hasAnyParent to check for any ancestor parent.

  • Type Parameters

    • T

    Parameters

    Returns boolean