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.
Passionate with code... In love with Web Design, Videogames, Books and Jazz music.Years of experience in "document composition" and a Front-End Developer wannabe (since years)
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.No one told... you’ve to... without considering It.