Skip to content

Instantly share code, notes, and snippets.

@morganney
Created August 2, 2015 23:00
Show Gist options
  • Save morganney/1a291cf95fd6c321f403 to your computer and use it in GitHub Desktop.
Save morganney/1a291cf95fd6c321f403 to your computer and use it in GitHub Desktop.
Convert Object with Iterator to an Array with Spread Operator
console.log([...obj]); // ['b', 'symbol', 'bar']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment