Skip to content

Instantly share code, notes, and snippets.

@niyazpk
Created December 11, 2011 18:22
Show Gist options
  • Save niyazpk/1461926 to your computer and use it in GitHub Desktop.
Save niyazpk/1461926 to your computer and use it in GitHub Desktop.
myArray = ['a', 'b', 'c', 'd'];
delete myArray[1];
// ['a', undefined, 'c', 'd'];
myArray.splice(1, 1)
// ['a', 'c', 'd'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment