DEV Community

Discussion on: The Holy Trinity of Functional Programming: Map, Filter and Reduce

Collapse
 
chrisachard profile image
Chris Achard

Yes! Really understanding map, filter and reduce really helped as I would read other people's code, and also really helped clean up my own code (especially when writing React and Redux).

Another note about .reduce: you can also reduce into an object or array as well - so look into that if you want to transform one object/collection into another one.

Collapse
 
mlevkov profile image
Mikhail Levkovsky

It's so cool, I use it in my day to day and shorten my functions so much just by introducing these nice high order functions.

Reduce is so powerful! You can compose functions like crazy and just make beautiful poetry with your code. I didn't include it here because it's more of an intro post but would be great to make a more advanced reduce article