Functional JavaScript: How to Use reduce for More Than Just Numbers

Reduce is the Swiss-army knife of array iterators. It’s really powerful. So powerful, you can build most of the other array iterator methods with it, like .map(), .filter() and .flatMap(). And in this article we’ll look at some more amazing things you can do with it. But, if you’re new to array iterator methods, .reduce() can be confusing at first.

Leave a Reply

Your email address will not be published. Required fields are marked *