slice or splice
You probably want to use slice

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

The splice() method changes the contents of an array by removing or replacing existing elements and/or adding new elements in place.

// *.splice([fromIndex], [toIndex], [insert])

 

let array = ['one', 'two', 'three'];

array.splice(1, 1, 'five');

 

console.log(array);

// ['one', 'five', 'three']

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice