Skip to content

Instantly share code, notes, and snippets.

@singhArmani
Created March 21, 2019 03:29
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 singhArmani/4cff702d0f42f60e336849378abd267e to your computer and use it in GitHub Desktop.
Save singhArmani/4cff702d0f42f60e336849378abd267e to your computer and use it in GitHub Desktop.
var obj = { a: 1, b: 2 };
var descriptor = Object.getOwnPropertyDescriptor(obj, "a");
console.log(descriptor.enumerable); // true
console.log(descriptor);
// { value: 1, writable: true, enumerable: true, configurable: true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment