DEV Community

Discussion on: objects? No... array, please!

Collapse
 
dmerand profile image
Donald Merand • Edited

Have you looked at object destructuring much? Seems like it can be a decent way to get array-like access to objects, without giving them up entirely.

It's also worth noting that you pay an object-traversal performance penalty every time you extract keys or values.

Collapse
 
genta profile image
Fabio Russo

I’ll check it out