DEV Community

Discussion on: Demystifying Array.reduce(): How to understand it and when to use it in your code

Collapse
 
sadarshannaiynar profile image
Adarsh

Nice post. I have seen people using map to do something that can be easily done by reduce. But somehow I felt some developers don't know that reduce exists in the prototype of Array or they are hesitant to switch to reduce.