Vonor/hasDeepProperty ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Node.js utility that can look through a nested object and tell me whether a property exists somewhere inside it.

I want it to be simple to use, something like passing in an object and a property name, then getting back a clear true or false result, or whatever makes the most sense for a tiny library like this. It should handle plain objects well, and it would be nice if it also worked when the property is buried inside other objects.

Please keep it lightweight and easy to import in another project. If you think there are edge cases to handle, like empty objects or weird values, go ahead and cover those in a sensible way. If you need to check current Node practices or documentation online, feel free to look them up.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab