Skip to main content Accessibility Feedback

Five interesting ways (and one boring way) to use Array.reduce()

I had the pleasure of writing an article for this year’s 24ways Advent Calendar: Five Interesting Ways to Use Array.reduce() (And One Boring Way).

If you’ve struggled to wrap your head around the Array.reduce() method, or just want to learn some cool things you can do with it, this article is for you.

There’s a ton of good stuff in this year’s series. My favorites include:

If you’ve got time this weekend, lots of good stuff to dig into here!