Object Flashcards
Object.create()
Create an object with specified prototype and properties.
Object.defineProperties()
Create or configure multiple properties on a given object.
Object.defineProperty()
Create or configure a single property on a given object.
Object.freeze()
Make an object immuntable.
Object.getOwnPropertyDescriptor()
Query property attributes
Object.getOwnPropertyNames()
Return the names of non-inherited properties.
Object.getPrototypeOf()
Return the prototype of an object.
Object.hasOwnProperty()
Check whether a property is inherited.
Object.isExtensible()
Check whether new properties can be added to an object.
Object.isFrozen()
Check whether an object is immutable.
Object.isPrototypeOf()
Check whether one object is the prototype of another.
Object.isSealed()
Check whether properties can be added to or deleted from an object.
Object.keys()
Return an object’s enumerable property names.
Object.preventExtensions()
Don’t allow new properties on an object.
Object.propertyisEnumerable()
Check whether an object’s property will be seen by a for/in loop.