objects2csv Example

Example Data (Checkout The Console Log F12)

const data = [
    { "name":"Ford", "models":[ "Fiesta", "Focus", "Mustang" ] },
    { "name":"BMW", "models":[ "320", "X3", "X5" ] },
    { "name":"Fiat", "models":[ "500", "Panda" ] }
  ]

const csv = objects2csv(data);

console.log(csv);