3 ms·
JavaScript is most programers' first introduction to map, filter, and reduce. Easy lambdas made those higher-order functions a staple of a lot of JS code. Mean
by lolinder 4y ago
JavaScript is most programers' first introduction to map, filter, and reduce. Easy lambdas made those higher-order functions a staple of a lot of JS code.
Meanwhile, immutable.js[0] is at 10 million downloads per week and rising.
I would add that it's not just the ease of use of lambdas, but the fact that in JavaScript functions really are first class citizens. Most of the other widely used languages have closures added in as a bit of a hack and only treat some functions as real values.
[0] https://www.npmjs.com/package/immutable https://www.npmjs.com/package/immutable