3 ms·
Array map takes one or more arrays with a callback, so the arrays have to be on the end. Array reduce has one array as a parameter, as does most of the other f
by dana321 7y ago
Array map takes one or more arrays with a callback, so the arrays have to be on the end.
Array reduce has one array as a parameter, as does most of the other functions and they all have the array as the first parameter.
Its only one function, and its an inconsistency for a reason. Lets not blow it all out of proportion.