-
-
Save ilearnjavascript/023267ba0a97b4984fc80a3915b1971e to your computer and use it in GitHub Desktop.
es6 - new methods - 12.js
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
var arr = [5, 1, 10, 8]; | |
for (var keys of arr.keys()) { | |
console.log(keys); | |
} | |
// outputs: 0, 1, 2, 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment