How to export JavaScript array info to csv (on client side)?

Опубликовано: 30 Сентябрь 2024
на канале: Code Samples
102
0

I know there are lot of questions of this nature but I need to do this using JavaScript. I am using Dojo 1.8 and have all the attribute info in array, which looks like this:
[["name1", "city_name1", ...]["name2", "city_name2", ...]]

Any idea how I can export this to CSV on the client side?
arrow functions: https://developer.mozilla.org/en-US/d...