DEV Community

Discussion on: Check if a property exists in an object

Collapse
 
frondor profile image
Federico Vázquez

You're right. I assumed in was slower simply because it has to iterate many levels, but looks like currently V8 knows how to properly optimize the loop. Thanks for pointing out, I'll edit that part.