Add arrayToCSV

This commit is contained in:
Angelos Chalaris
2018-06-27 20:26:43 +03:00
parent a43ed86771
commit 537bff5093
7 changed files with 1443 additions and 1407 deletions

View File

@ -0,0 +1,2 @@
const arrayToCSV = (arr, delimiter = ',') => arr.map(v => v.join(delimiter)).join('\n');
module.exports = arrayToCSV;