4 ms·
I hear this complaint a lot but I find those argument orders completely intuitive. You filter (1) an array with (2) a function. You map (1) a function over (2)
by benp84 7y ago
I hear this complaint a lot but I find those argument orders completely intuitive.
You filter (1) an array with (2) a function.
You map (1) a function over (2) an array.
You reduce (1) an array with (2) a function.
It follows exactly what I'm thinking when I type it. To reverse the orders would be, what? "Mapping an array with a function?" "Filter a function on an array?"