I’ve just searched “reduce” on Unsplash and this was the first result, philosophical! Photo by Noah Buscher

In defense of reduce()

Reduce has been getting a lot of “hate” recently: let’s spread some love!

--

I’ve seen a lot of debate in the JavaScript community lately. It’s strange ’cause it never happens!

The dish of the week seems to be Array.prototype.reduce(). Is it useful? Is it worse than loops? Is it readable? This is a recurring topic which has been brought up multiple…

--

--