ixfx
    Preparing search index...
    • Checks if a child node has a parent with a certain value Note: by default only checks immediate parent. Set maxDepth to a large value to recurse

      Uses getValue() on the parent if that function exists.

      Type Parameters

      Parameters

      • child: T

        Node to start looking from

      • possibleParentValue: TV

        Value to seek

      • eq: IsEqual<TV> = ...

        Equality checker

      • maxDepth: number = 0

        Defaults to 0, so it only checks immediate parent

      Returns boolean