Created
March 28, 2019 03:13
-
-
Save deleteman/27d7a61932da80d82965eefd02938fbb to your computer and use it in GitHub Desktop.
object keys
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 obj = { | |
a: 1, | |
b: 2, | |
test: function() { return 0} | |
} | |
for(m in obj) { | |
console.log(m) | |
} | |
console.log(Object.keys(obj)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment