DEV Community

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

 
alainvanhout profile image
Alain Van Hout

Yes, that allows you to leverage the extra methods (i.e. power) of javascript arrays (since a nodeList is just a poor-man’s array anyway). But that’s quite different from the approach you discuss above, about using arrays instead of objects with fields.

Thread Thread
 
genta profile image
Fabio Russo

Maybe It was not so clear ☹️