Returns true if prospectiveParent is any ancestor parent of child.

Use hasParent to only check immediate parent.

  • Type Parameters

    • T

    Parameters

    Returns boolean