Skip to content

Instantly share code, notes, and snippets.

@NV
Created August 18, 2009 18:52
Show Gist options
  • Save NV/169879 to your computer and use it in GitHub Desktop.
Save NV/169879 to your computer and use it in GitHub Desktop.
a=['first', 'last'];
a[-1] == null;
a[-1] = a[a.length-1];
a[-1] == 'last'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment