DEV Community 👩‍💻👨‍💻

Discussion on: Which is faster: obj.hasOwnProperty(prop) vs Object.keys(obj).includes(prop)

Collapse
 
ycmjason profile image
Jason Yu

Try a bigger object, say with 20000 keys.