Transform an Array of Objects into an Array of Arrays with .reduce()
lessonDuration 2m 17sFree
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.