12 ms·
Exactly. I personally think calling .map() on an array is more readable than an array comprehension. But since CS is "just JavaScript" you are free to use the
by ralmidani 9y ago
Exactly.
I personally think calling .map() on an array is more readable than an array comprehension. But since CS is "just JavaScript" you are free to use the native JS array methods (and even more elegantly, at that).
- twykke 9y agolist comprehensions was exactly what i was talking about :) however i replace them with lodash and ramda, which benefit enormously from CS's lambda syntax
- atom-morgan 9y agoI wish this line of thinking was more common. So many people feel forced to use parts of a language when you don't have to.