console.log(csvcontents.data.length - 8);
for (let i = 7; i < csvcontents.data.length - 1; i++) {
// console.log(csvcontents.data[i][0]);
// arrayListFromCsvFile.push(csvcontents.data[i]);
arrayListFromCsvFile.push(csvcontents.data[i]);
}
console.log(arrayListFromCsvFile);
}
The following code snippet displays the specified output:
[
[
'2021-05-18',
'17:07:32',
'Informational',
'abc',
'xyz',
"Web user 'abc' logged in ",
'0x00'
],
[
'2021-05-18',
'17:07:32',
'Informational',
'xyz',
'abc',
"Web user 'abc' logged in ",
'0x10'
],
]
Is there a way to exclude values with indexes starting from 2,3,6
?
In other words, only include '2021-05-18'
, '17:07:32'
, 'abc'
, and 'Web user 'abc' logged in'
in both arrays.