DEV Community

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

Collapse
 
ycmjason profile image
YCM Jason

Try a bigger object, say with 20000 keys.