DEV Community

Discussion on: We Don't Need No Stinking map() or filter()

Collapse
 
codevault profile image
Sergiu Mureşan

I used filter, map and reduce almost every day at work and never thought of that! Great article!

Maybe use reduce instead when you both want to filter and map at the same time? Or maybe you want to do some other operations as well. reduce is like the swiss army knife of JS.