L
L
leyarthemes2019-04-02 14:14:33
JavaScript
leyarthemes, 2019-04-02 14:14:33

How to prepare an array for export to csv?

Hello, in the fiddle https://jsfiddle.net/uqpxykt9/2/ there are 2 functions that work almost correctly, namely they form a csv file with only two lines (line 23 and 25 in the fiddle). Please tell me how to prepare the lines array in the first function so that the second one displays a table with all the lines from the array

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-04-02
@leyarthemes

return data.map(n => n.join(columnDelimiter)).join(lineDelimiter);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question