DEV Community

Discussion on: Map, Filter, Reduce and others Arrays Iterators You Must Know to Become an Algorithms Wizard

Collapse
 
uptheirons78 profile image
Mauro Bono

Your 2 cents are gold, cause you are completely right and in a real case scenario I will use your same path with filter() and reduce().

In this case I just wanted to show it is possible to do it only with reduce() 😉😉😉