DEV Community

Discussion on: filter, map and reduce in JS. When and Where to use??

Collapse
 
nehal_mahida profile image
Nehal Mahida

Definitely a good point 👏🏻

Performance vs readability is a never-ending debate.

I intend how we can avoid two methods by just using reduce and explaining to the people how to use reduce syntactically!!

And yes, for loop is there to achieve all of these things.