Skip to content

Instantly share code, notes, and snippets.

@teppeis
Created January 12, 2015 07:56
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 teppeis/5284739aa1c6823b2ea9 to your computer and use it in GitHub Desktop.
Save teppeis/5284739aa1c6823b2ea9 to your computer and use it in GitHub Desktop.
Object static methods that accept non object arguments in ES6

Object static methods that accept non object arguments in ES6

Object.getPrototypeOf ( O )

Object.getOwnPropertyDescriptor ( O, P )

Object.getOwnPropertyNames ( O )

Object.seal ( O )

Object.freeze ( O )

Object.preventExtensions ( O )

Object.isSealed ( O )

Object.isFrozen ( O )

Object.isExtensible ( O )

Object.keys ( O )


Following methods do NOT accept non object yet.

Object.create ( O [, Properties] )

Object.defineProperty ( O, P, Attributes )

Object.defineProperties ( O, Properties )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment