Created
December 2, 2014 21:00
-
-
Save devdays/3db22da16dcc6a0bb2a5 to your computer and use it in GitHub Desktop.
Object JavaScript: using descriptor
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 descriptor = Object.getOwnPropertyDescriptor(bruce, “name”); | |
console.write(descriptor.value); // bruce | |
console.write(descriptor.enumerable); //false | |
console.write(descriptor.writable); // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment