I can read the data row by row from csv like so:
var numberArray = csvData.length;
for (var i = 0; i < numberArray; i++) {
if (csvData[i] != '') {
console.log("Phone number from csv is " + csvData[i]
}
Csv file has rows of phone numbers in a single column like so:
081203040
081111111
Assuming the csv has two columns per row like so:
081203040,0191111111
081111111,1710222222
How do I iterate through the csv to get the numbers in both columns row by row so I have something similar to what’s below:
console.log("Phone number from csv in column one is " + csvData[i]
console.log("Phone number from csv in column two is " + csvData[j]
Thanks