Understanding Javascript Reducers
What is actually happening when we call Array.reduce()?

Search for a command to run...

Series
Reducers can do a lot more than simply add up numbers in an array. This 5 part series will focus on using reducers to solve some tricky everyday tasks.
What is actually happening when we call Array.reduce()?

Tally an array of wardrobe items into an organized Object closet.

When Should I use Array.reduce? Javascript Arrays have many built-in array methods that can sort out some pretty complex logic for you. A simple example would be taking an array and doubling its values, or filtering for odd numbers in an array. Her...

Real-world uses for Array.reduce Many of the examples we've gone through have been contrived and unrealistic of the kind of data we manage daily. In this example we'll go through some more complex data, and grabbing only what we need using Array.red...

Array.reduce and its Parameters and reduceRight. One last useful feature of Array.reduce() are its optional parameters. Let's go through them. There are some occasions when it's useful or necessary to know the index we are on, or you'll need the arr...
