JavaScript Object Class

In JavaScript, an Object is a collection of key/value pairs.

In this reference page, you will find all the built-in methods of Object that will make working with objects much more easier and straightforward. For example, the keys() method returns an array containing the keys of an object.

JavaScript Object.toLocaleString()

Returns the string representation of Object

JavaScript Object.keys()

Returns array of object's enumerable property name

JavaScript Object.values()

Return array of object's enumerable property value

JavaScript Object.entries()

Returns array of object's enumerable properties

JavaScript Object.toString()

Returns a string representing the object

JavaScript Object.valueOf()

Returns the primitive value of specified object

JavaScript Object.seal()

Seals the given object

JavaScript Object.isSealed()

Determines if an object is sealed

Javascript Object.setPrototypeOf()

Sets prototype of object to another object or null

JavaScript Object.isPrototypeOf()

Check if object exists in other objects prototype

JavaScript Object.propertyIsEnumerable()

Checks if the specified property is enumerable

JavaScript Object.getPrototypeOf()

Returns the prototype of the given object

Javascript Object.create()

Creates new object from given object as prototype

JavaScript Object.assign()

Copies all enumerable own properties to an object

Javascript Object.defineProperties()

Defines properties on an object and returns object

Javascript Object.defineProperty()

Defines property directly on object and return it

JavaScript Object.is()

Checks if two values are the same value

JavaScript Object.freeze()

Freezes and returns an object

Javascript Object.isFrozen()

Determines if an object is frozen

JavaScript Object.hasOwnProperty()

Checks if object has a given property as its own

Javascript Object.preventExtensions()

Prevents new properties from being added to object

JavaScript Object.isExtensible()

Determines if an object is extensible

JavaScript Object.fromEntries()

Transforms list of key-value pairs into an object

JavaScript Object.getOwnPropertyDescriptor()

Returns property descriptor of own property of obj

JavaScript Object.getOwnPropertyDescriptors()

Returns all own property descriptors of an object

JavaScript Object.getOwnPropertyNames()

Returns array of all properties found in an object

JavaScript Object.getOwnPropertySymbols()

Returns array of all symbol properties in object