Created
November 15, 2017 18:45
-
-
Save bbaaxx/1dcbc958adcbbb8971d1a385b1c56ccd to your computer and use it in GitHub Desktop.
Code for blog post about iterators iterables and generators with ES6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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