Last active
November 2, 2016 05:14
-
-
Save evertonthepaula/0521f5eeeca0fb83fba8e5d24f3db1c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(let p = 0, line; line = allTextLines[p++];) | |
{ | |
var obj = {}; | |
var col = line.split(','); | |
for(let j = 0, h; h = header[j]; j++) | |
{ | |
obj[h] = col[j]; | |
} | |
jsonArray.push(obj); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment