Skip to content

Instantly share code, notes, and snippets.

@jperrine
Created August 23, 2012 21:56
Show Gist options
  • Save jperrine/3442448 to your computer and use it in GitHub Desktop.
Save jperrine/3442448 to your computer and use it in GitHub Desktop.
array = [1,2,4,3]
// => [1, 2, 4, 3]
array[6]
// => undefined
array[6] !== undefined
// => false
array[1] !== undefined
// => true
array[1] = false
// => false
array[1] !== undefined
// => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment