Created
December 18, 2015 21:31
-
-
Save felquis/e48c96c7c4d3a690ea16 to your computer and use it in GitHub Desktop.
Object.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
var collection = { | |
property: 'value', | |
property2: 'value2' | |
} | |
Object.keys(collection).forEach(function (name) { | |
console.log(name, collection[name]) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment