3 ms·
> 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
by 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.