Created
February 15, 2015 01:18
-
-
Save llun/7a7881558c73e8ac3f01 to your computer and use it in GitHub Desktop.
generated from 6to5
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
let obj = [1, 2, 3] | |
for (let val of obj) { | |
console.log (val) | |
} |
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
"use strict"; | |
var obj = [1, 2, 3]; | |
for (var _iterator = obj[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) { | |
var val = _step.value; | |
console.log(val); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment