Array[7998]
[0 … 99]
0:" 1 2015-01-14 13:27:07 1 0 2 0"
1:" 1 2015-01-14 13:30:11 1 0 2 0"
2:" 1 2015-01-14 13:33:34 1 0 2 0"
3:" 1 2015-01-14 13:33:43 1 0 2 0"
4:" 2 2015-01-21 10:54:37 1 0 1 0"
5:" 2 2015-02-03 11:39:57 1 0 1 0"
6:" 2 2015-02-03 11:44:56 1 4 1 0"
7:" 1 2015-02-03 11:44:59 1 4 2 0"
8:" 2 2015-02-03 11:49:49 1 0 1 0"
9:" 221 2015-02-03 11:49:51 1 0 1 0"
10:" 221 2015-02-03 11:49:53 1 0 1 0"
11:" 221 2015-02-03 11:52:07 1 0 1 0"
12:" 1 2015-02-26 17:29:24 1 4 2 0"
Hi! I get this result from this code:
function onReadFile(file){
var txt = file.target.result;
var list = txt.split('\n');
// var result = list.map(function(item){
// return item.split('\n');
// });
console.log(list);
}
Is there a way to get just the first three values or columns? The first three columns represent the Id, date, and time so I need to extract just the three like so..
[1,2015-01-14,13:27:07][1,2015-01-14,13:30:11][1,2015-01-14,13:33:34][...]
Thank you.