Skip to content

Instantly share code, notes, and snippets.

@geddski
Created August 6, 2011 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geddski/1129044 to your computer and use it in GitHub Desktop.
Save geddski/1129044 to your computer and use it in GitHub Desktop.
Removing elements from an array
var books = ["Ender's Game", "The Hobbit", "The Alliance"];
books.splice(1,1);
console.log(books);
//["Ender's Game", "The Alliance"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment