Last active
November 18, 2017 23:09
-
-
Save bbaaxx/6cfcf04960fcff945e102290a68d3ec2 to your computer and use it in GitHub Desktop.
Code for blog post about iterators iterables and generators with ES6
This file contains hidden or 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
const someArray = [2, 4, 8]; | |
for (let n of someArray) { console.log(n); } | |
// 2 | |
// 4 | |
// 8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment