I have this array object and I want to try convert it to like array for csv file kind of type. For example like array object bellow
const arrayObject = [
{
Name: "Alex",
Age: 16,
Address: "Miami",
},
{
Name: "James",
Age: 36,
Address: "LA",
},
{
Name: "Mark",
Age: 25,
Address: "San Diego",
},
];
and what I expect to converted to look like this:
[
'Name,Age,Address',
'Alex,16,Miami',
'James,36,LA',
'Mark,25,San Diego'
]