MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/fo5eyt/array_reduce_explained_in_80_seconds/fle6ckm/?context=3
r/learnjavascript • u/somewhat-funny • Mar 24 '20
25 comments sorted by
View all comments
2
My colleagues accuse me of overusing reduce (guilty!) but I love how you can do map, filter, flatten and a bunch of other things in a single reduce call. If written well, you also avoid unclear code.
2
u/oreo27 Mar 24 '20
My colleagues accuse me of overusing reduce (guilty!) but I love how you can do map, filter, flatten and a bunch of other things in a single reduce call. If written well, you also avoid unclear code.