Hacker News new | ask | show | jobs
by ralmidani 3199 days 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).

1 comments

list comprehensions was exactly what i was talking about :) however i replace them with lodash and ramda, which benefit enormously from CS's lambda syntax
I 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.