Returns true if possibleChild is contained within parent tree. That is, it is any sub-child.

  • Type Parameters

    Parameters

    • parent: T

      Parent tree

    • possibleChild: T

      Sought child

    • eq: IsEqual<T> = isEqualDefault

      Equality function, or isEqualDefault if undefined.

    Returns boolean