Transform an Array of Objects into an Array of Arrays with .reduce()

InstructorLindsey Kopacz

Share this video with your friends

Send Tweet

We use the same set of data that we used in my filter lesson (https://egghead.io/lessons/javascript-filtering-through-an-array-of-countries-using-filter) to create an array of coordinates. We use the .reduce() method to create the data structure that we need here.