N
N
Nekio2021-07-12 12:02:43
JavaScript
Nekio, 2021-07-12 12:02:43

How to output data from JS array to CSV file?

for example, there is such an array: How can I export it to a csv file?
let arr = ['text', 1, 2, 3, 4, 5]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2021-07-12
@Kozack

csv -- comma-separated values.
arr.join(',') // Строка в csv формате

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question