In defense of reduce()
Reduce has been getting a lot of “hate” recently: let’s spread some love!
10 min readMay 24, 2021
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…