BUPKIS
    Preparing search index...
    • Recursively searches within an object, array, or any nested structure to find whether a specific value exists.

      Uses strict equality (===) to compare values, with special handling for empty objects and empty arrays. Handles circular references by tracking visited objects to prevent infinite recursion.

      Parameters

      • obj: unknown

        The object, array, or value to search within

      • value: unknown

        The value to search for (using strict equality, with special empty object/array handling)

      • visited: WeakSet<object> = ...

        Internal set for circular reference detection

      Returns boolean

      True if the value is found anywhere in the structure, false otherwise