r/learnjavascript • • Mar 24 '20

Array Reduce Explained in 80 Seconds

https://youtu.be/lxT4LZdtJrU
70 Upvotes

25 comments sorted by

View all comments

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.