Skip to main content Accessibility Feedback

More uses for Array.reduce()

Last week, we looked at the Array.reduce() method.

A few days earlier, Matthew Gerstman had shared an article on a few of the array methods, and my friend Alessandro Muraro and I asked Matthew a few questions about Array.reduce().

He was kind enough to put together an entire article with some detailed examples of things you can do with the Array.reduce() method.

It includes things like group and reorganizing objects, flattening, chunking, and more. Go read the whole thing.

Thanks Matthew!