DEV Community

Discussion on: What to do with lists of things in JavaScript

lysofdev profile image
Esteban Hernández

I remember hating JS before all of these things were standardized. Coming from Ruby, I favor list operations over while and for loops. JS being (originally) a functional language, it didn't make much sense that all of these list operations were missing until just a few years ago. I guess they were too busy justifying the dual existence of undefined and null.

krofdrakula profile image
Klemen Slavič Author

Heh, true. There were things like the Prototype library that extended the prototypes to fill the gap somewhat, but that just made it harder for language designers to implement the built-in objects without breaking the web in the process.

To be honest, the prototype methods are mainly just syntactic sugar, and I'm currently working on a followup series of articles and a secret project to explain the application of this in a much broader context. :)