Created
February 8, 2018 06:26
-
-
Save goofmint/aa1e49e7eec81ccbbbe7c7bfe547215e 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
const ary = []; | |
ary.push(1); | |
ary.push(2); | |
ary.push(3); | |
for (let {index, value} of ary.eachWithIndex()) { | |
console.log(index, value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment