Skip to content

Instantly share code, notes, and snippets.

@bitfishxyz
Last active January 30, 2019 14:10
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 bitfishxyz/40d45418c680bce2abb496f4e303101d to your computer and use it in GitHub Desktop.
Save bitfishxyz/40d45418c680bce2abb496f4e303101d to your computer and use it in GitHub Desktop.
let obj = {
a: 1
}
Object.defineProperty(obj, 'a', {
configurable: false
})
// will throw an error
Object.defineProperty(obj, 'a', {
enumerable: false
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment