THP Logo THP

Object

The Object class represents one of JavaScript's data types. It is used to store various keyed collections and more complex entities. Almost all objects in JavaScript are instances of Object; a typical object inherits properties (including methods) from Object.prototype.

Functions

Copies all enumerable own properties from one or more source objects to a target object. It returns the modified target object.

Creates a new object, using an existing object as the prototype of the newly created object.

Returns an array of a given object's own enumerable string-keyed property [key, value] pairs.

Freezes an object. A frozen object can no longer be changed; freezing an object prevents new properties from being added to it, existing properties from being removed, and prevents changing the enumerability, configurability, or writability of existing properties.

Transforms a list of key-value pairs into an object.

Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.

Returns an array of all properties (including non-enumerable properties except for those which use Symbol) found directly in a given object.

Returns the prototype (i.e., the value of the internal [[Prototype]] property) of the specified object.

Determines whether two values are the same value.

Returns an array of a given object's own enumerable property names, iterated in the same order that a normal loop would.

Returns an array of a given object's own enumerable string-keyed property values, in the same order as that provided by a for...in loop.

See Also