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



// ['two', 'three']

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



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