Skip to content

Instantly share code, notes, and snippets.

@niyazpk
Created December 11, 2011 16:02
Show Gist options
  • Save niyazpk/1461275 to your computer and use it in GitHub Desktop.
Save niyazpk/1461275 to your computer and use it in GitHub Desktop.
// extensible - boolean
Object.isExtensible(object) // find out if an object is extensible
Object.preventExtensions(object) // You cannot add any more properties.
Object.seal(object) // Cannot delete properties anymore.
Object.freeze(object) // seals + makes every property read-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment