• Searches breadth-first for possibleValue under and including parent. maxDepth sets he maximum level to which the tree is searched.

    Type Parameters

    Parameters

    • parent: T
    • possibleValue: TV
    • eq: IsEqual<TV> = isEqualDefault
    • maxDepth: number = 0

    Returns T | undefined