37 ms·
It's a bit messy in JS. In Ruby the map/filter/reduce handling is very smooth, readable and useful!
by BurningFrog 5y ago
It's a bit messy in JS.
In Ruby the map/filter/reduce handling is very smooth, readable and useful!
- dragonwriter 5y ago> It's a bit messy in JS. Mainly, IME, because of the combination of JS map, etc., passing extra, infrequently used parameters, and functions you might want to use often accepting optional less-frequently-used parameters, which can end up interacting horribly wrong when you do: arr.map(func) instead of: arr.map(v => func(v)) when you want a “simple” map application.