I'm using alasql to convert into CSV:
data = ["402 Fourth Avenue", "11 Russell Avenue", "East Diamond Avenue"];
function exportData(list) {
alasql.promise('SELECT * INTO CSV("test.csv", {separator:" "} ) FROM ?',list)
.then(function(data){
console.log('Data saved');
}).catch(function(err){
console.log('Error:', err);
});
}
When I pass it through the function my result ends up like this:
4 0 2 "F" "o" "u" "r" "t" "h" "A" "v" "e" "n" "u" "e"
I cannot figure out why! Thank you in advance you will make my day!