Skip to content

Instantly share code, notes, and snippets.

@jonathan-fielding
Created October 16, 2020 19:03
Show Gist options
  • Save jonathan-fielding/445d6e9a89f2109c5318dd9a0625f8e8 to your computer and use it in GitHub Desktop.
Save jonathan-fielding/445d6e9a89f2109c5318dd9a0625f8e8 to your computer and use it in GitHub Desktop.
Removing first item from an array
const fruits = ["Banana", "Orange", "Apple", "Mango", "Kiwi"];
fruits.shift();
console.log(fruits); // ["Orange", "Apple", "Mango", "Kiwi"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment