Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js array to csv download

const rows = [
    ["name1", "city1", "some other info"],
    ["name2", "city2", "more info"]
];

let csvContent = "data:text/csv;charset=utf-8," 
    + rows.map(e => e.join(",")).join("
");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #array #csv #download
ADD COMMENT
Topic
Name
8+9 =