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. 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 handling)
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. Handles circular references by tracking visited objects to prevent infinite recursion.