The object, array, or value to search within
The value to search for (using strict equality, with special empty object/array handling)
Internal set for circular reference detection
True if the value is found anywhere in the structure, false otherwise
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.