Skip to content

Instantly share code, notes, and snippets.

@rigobertocontreras
Created November 8, 2019 22:01
Show Gist options
  • Save rigobertocontreras/6794435ed545c34bb6e2af7e8314ece3 to your computer and use it in GitHub Desktop.
Save rigobertocontreras/6794435ed545c34bb6e2af7e8314ece3 to your computer and use it in GitHub Desktop.
ES6 last element from object
last = Object.keys(obj)[Object.keys(obj).length-1];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment