DEV Community

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

Collapse
 
tiffany profile image
tiff

There are times when you should use an object over an array for storing data. And if it is performance or efficiency that's your jam, using a Set is much more efficient than an array, again, depending on what you're looking to do. Swearing off objects because they don't look good is not an effective strategy in long-term development.

Collapse
 
genta profile image
Fabio Russo

No one told... you’ve to... without considering It.