🌱 flatMap example

Source

Uses flatmap to merge 4 csv datasets

stocks = [
  ['AAPL', aapl],
  ['AMZN', amzn],
  ['GOOG', goog],
  ['IBM', ibm],
].flatMap(([Symbol, data]) => data.map((d) => ({ Symbol, ...d })))
Made by Brandon . If you find this project useful you can donate.