The .shift() method removes the first element of an array. Then you can return the remaining:

const array = ["item 1", "item 2", "item 3", "item 4"];
array.shift();

console.log(array);

As others have suggested, you could also use slice(1):

const array = ["item 1", "item 2", "item 3", "item 4"];
  
console.log(array.slice(1));

Answer from Jesper Højer on Stack Overflow
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Array › shift
Array.prototype.shift() - JavaScript | MDN
The shift() method of Array instances removes the first element from an array and returns that removed element. This method changes the length of the array.
🌐
CoreUI
coreui.io › answers › how-to-remove-the-first-item-from-an-array-in-javascript
How to remove the first item from an array in JavaScript · CoreUI
September 18, 2025 - From my expertise, the most efficient and built-in solution is using the shift() method, which removes and returns the first element. This approach is clean, performant, and specifically designed for this exact use case.
🌐
W3Schools
w3schools.com › jsref › jsref_shift.asp
JavaScript Array shift() Method
❮ Previous JavaScript Array Reference Next ❯ · Shift (remove) the first element of the array: const fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.shift(); Try it Yourself » · The shift() method returns the shifted element: const ...
🌐
Medium
medium.com › @erictongs › the-best-way-to-remove-the-first-element-of-an-array-in-javascript-shift-vs-splice-694378a7b416
The best way to remove the first element of an array in Javascript — shift() vs splice() | by Eric Tong | Medium
March 29, 2019 - In Javascript, there are two methods in Array.prototype for removing the first element of an array: shift() and splice(). shift() doesn’t take any arguments. It returns the first element of the array and removes the element from the array.
🌐
30 Seconds of Code
30secondsofcode.org › home › javascript › array › remove first or last n array elements
Remove the first or last n elements from a JavaScript array - 30 seconds of code
December 24, 2023 - In order to remove n elements from the beginning of an array, you can use Array.prototype.slice() with a positive start index and no end index. This will return a new array with the first n elements removed.
Find elsewhere
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Array › splice
Array.prototype.splice() - JavaScript | MDN
If deleteCount is omitted, or if its value is greater than or equal to the number of elements after the position specified by start, then all the elements from start to the end of the array will be deleted. However, if you wish to pass any itemN parameter, you should pass Infinity as deleteCount to delete all elements after start, because an explicit undefined gets converted to 0. If deleteCount is 0 or negative, no elements are removed.
🌐
Vultr Docs
docs.vultr.com › javascript › standard-library › Array › shift
JavaScript Array shift() - Remove First Element | Vultr Docs
November 25, 2024 - The shift() method in JavaScript is a straightforward but powerful tool for manipulating arrays. It primarily focuses on removing the first element from an array and returning that removed element, altering the length of the array in the process.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › delete-the-first-element-of-array-without-using-shift-method-in-javascript
Delete the first element of array without using shift() method in JavaScript - GeeksforGeeks
August 5, 2025 - let Arr = ['Geeks', 'GFG', 'Geek', 'GeeksForGeeks']; console.log("Array: [" + Arr + "]"); function removeFirst(element, index) { return index > 0; } function myGFG() { Arr = Arr.filter(removeFirst); console.log("Elements of array = [" + Arr ...
🌐
JSchallenger
jschallenger.com › javascript-practice › javascript-arrays › remove-first-elements-array-javascript
Remove first n elements of an array | JSchallenger
JSchallenger. Write a function that takes an array (a) as argument. Remove the first 3 elements of 'a'. Return the result
🌐
SitePoint
sitepoint.com › blog › javascript › jquery remove first array element
jQuery Remove First Array Element — SitePoint
February 12, 2024 - Just use the JavaScript array.shift() and array.pop() methods. These methods changes the length of the array! var myarray = ["item 1", "item 2", "item 3", "item 4"]; //removes the first element of the array, and returns that element. ... Don’t forget to put your jQuery code inside a document ...