Skip to content

Instantly share code, notes, and snippets.

@jasonbellamy
Last active September 3, 2016 16:26
Show Gist options
  • Save jasonbellamy/4bcaaa73f8013318dacd941525631e06 to your computer and use it in GitHub Desktop.
Save jasonbellamy/4bcaaa73f8013318dacd941525631e06 to your computer and use it in GitHub Desktop.
length
const xs = [1, 2, 3, 4, 5];
const [ x ] = xs.slice(-1); //=> 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment