Last active
July 17, 2019 15:21
-
-
Save deleteman/79a9319894cf29dfc797c37b4b59d5c5 to your computer and use it in GitHub Desktop.
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
let myArr = ["hello", "world"] | |
for([idx, value] of myArr.entries()) { | |
console.log(idx, '=', value) | |
} | |
/* | |
0 '=' 'hello' | |
1 '=' 'world' | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment