2 ms·
Agreed for map, filter etc. but reduce is the exception. There has been a fad of overusing it, until that article popped up which called it out.
by doubletgl 6y ago
Agreed for map, filter etc. but reduce is the exception. There has been a fad of overusing it, until that article popped up which called it out.
- jraph 6y agoI "got" reduce not long ago. It's occasionally handy, and it makes sense, but sure, it should not be overused. It is the most complicated between the three. A good old loop in code bases that are not afraid of them are totally fine and probably clearer in many cases.