The slice() method returns a shallow copy of a portion of an array into a new array object selected from begin to end (end not included). The original array will not be modified.
// *.slice([fromIndex], [toIndex])
const array = ['one', 'two', 'three'];
const sliced = array.slice(1);
console.log(sliced);
// ['two', 'three']
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice