Skip to content

Instantly share code, notes, and snippets.

@bbaaxx
Created November 15, 2017 18:45
Show Gist options
  • Save bbaaxx/1dcbc958adcbbb8971d1a385b1c56ccd to your computer and use it in GitHub Desktop.
Save bbaaxx/1dcbc958adcbbb8971d1a385b1c56ccd to your computer and use it in GitHub Desktop.
Code for blog post about iterators iterables and generators with ES6
console.log(Array.from(someObject)) // [1, "Yolodog", "a"]
// con spread operator:
console.log([...someObject]) // [1, "Yolodog", "a"]
console.log(...someObject) // 1 "Yolodog" "a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment