how to trim values from multidimentional array

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); 
  }

This code prints the output as mentioned below

    [
[
‘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 any way to del the call values with index starting from 2,3,6. ie, i want only the ‘2021-05-18′,
’17:07:32’,’abc,’Web user ‘abc’ logged in ‘ in both the arrays

Source: AngularJS Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.