Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 2, 2014 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devdays/3db22da16dcc6a0bb2a5 to your computer and use it in GitHub Desktop.
Save devdays/3db22da16dcc6a0bb2a5 to your computer and use it in GitHub Desktop.
Object JavaScript: using descriptor
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