4 ms·
This is more of a case of a stupid library than stupid language. And whether it's a stupid library is even debatable. map() has gained a more popular understan
by laureny 14y ago
This is more of a case of a stupid library than stupid language.
And whether it's a stupid library is even debatable. map() has gained a more popular understanding from functional programming these days but it was probably not so when this Javascript map() function was added.
- fauigerzigerk 14y agoIt is very likely that the person who added map() to JavaScript knew about its meaning in functional languages, otherwise s/he would have called it applyToEach() or something like that.