I have an array of arrays like this [[1,2,3],[4,5,6],[7,8,9]]
i think the code will be like this:
const arrayToCSV = (table, delimiter = ',') =>
table.map(v => v.map(x => `"${x}"`).join(delimiter)).join('\n');
but something left to write with nodejs, how can i write those arrays in a file csv?