Last active
January 18, 2017 03:00
-
-
Save hackjutsu/aff9b9ae062b575a08b71c50486598ac to your computer and use it in GitHub Desktop.
Iteration on JS object's own keys.
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 arr = ['a', 'b', 'c']; | |
Object.keys(arr).forEach(key => { | |
console.log(key) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment