Don’t use the second argument:
Array.slice(2);
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/slice
If end is omitted, slice extracts to the end of the sequence.
Don’t use the second argument:
Array.slice(2);
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/slice
If end is omitted, slice extracts to the end of the sequence.