1. Show Array
- Let's pretend for a second that this pplFromAPI array isn't hardcoded, and instead it's being returned to us depending on service calls elsewhere in our application.
- It's our job to transform this data into a 1dimensional array for the UI to iterate over and display accordingly.
2. - const flattenData = (arr = peopleArray) => .concat(...ar)
- One way of implementing this is using .concat in conjunction with the ...spread operator introduced with the release of ES6.
3 "highligh dots"
Shields us having to iterate thru each nested array, building up the final value on each pass.