3 ms·
> We are doing applied CS here, don't we? Yes. And CoffeScript prefers comprehensions over the maps. From the docs: > Comprehensions should be able to handle
by rimantas 15y ago
> We are doing applied CS here, don't we?
Yes. And CoffeScript prefers comprehensions over the maps. From the docs:
> Comprehensions should be able to handle most places
> where you otherwise would use a loop, each/forEach,
> map, or select/filter
In this case I prefer that way also because it puts the main thing first.
- deleted 15y ago[deleted]