Closed abhisgit closed 6 years ago
A simple test to showcase issue:
var test = ['It','works','correctly','now'];
var headers = ""; for (var index in test) { headers += index + ","; } console.log(headers); // expected output: "It,works,correctly,now," // actualoutput: "0,1,2,3,"
var headers = ""; for (var column of test) { headers += column + ","; } console.log(headers); // expected output: "It,works,correctly,now," // actualoutput: "It,works,correctly,now,"
Good deal!
…rray elements for headers