Last active
March 3, 2017 22:48
-
-
Save kthjm/0c12b4c7d8408ad12459a501a572b764 to your computer and use it in GitHub Desktop.
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
function* wannaIterable(length){ | |
let from = 0; | |
while(from < length){ | |
yield from++; | |
} | |
} | |
[...wannaIterable(10)].forEach(num=>console.log(`hello_${num}`)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test