Javascript – flatMap with one line of arrow function confusion
The first arrow function in flatMap does not get me what I need, the second arrow function does. I need to turn data into the flat name array ['John', 'Jane', 'Bob'] const data = [ [{ name: 'John', age: 25…