Object API

The Object global object is a constructor for objects.

31 Total 28 Methods 3 Properties 24 Statics
  Show all

[Symbol.toStringTag]

A string tag used by Object.prototype.toString().o[Symbol.toStringTag]

Object.assign()

Copies the values of all enumerable own properties from one or more source objects to a target object.Object.assign()

constructor

Specifies the function that creates an object's prototype.o.constructor

Object.create()

Creates a new object with the specified prototype object and properties.Object.create()

Object.defineProperties()

Defines new or modifies existing properties directly on an object.Object.defineProperties()

Object.defineProperty()

Defines a new property directly on an object, or modifies an existing property.Object.defineProperty()

Object.entries()

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

Object.freeze()

Freezes an object, preventing new properties from being added and existing properties from being modified or removed.Object.freeze()

Object.fromEntries()

Transforms a list of key-value pairs into an object.Object.fromEntries()

Object.getOwnPropertyDescriptor()

Returns a property descriptor for an own property of an object.Object.getOwnPropertyDescriptor()

Object.getOwnPropertyDescriptors()

Returns all own property descriptors of an object.Object.getOwnPropertyDescriptors()

Object.getOwnPropertyNames()

Returns an array of all properties found directly in an object.Object.getOwnPropertyNames()

Object.getOwnPropertySymbols()

Returns an array of all symbol properties found directly in an object.Object.getOwnPropertySymbols()

Object.getPrototypeOf()

Returns the prototype of the specified object.Object.getPrototypeOf()

Object.hasOwn()

Returns a boolean indicating if the object has the specified property as its own property.Object.hasOwn()

hasOwnProperty()

Returns a boolean indicating whether the object has the specified property as its own property.o.hasOwnProperty()

Object.is()

Determines whether two values are the same value.Object.is()

Object.isExtensible()

Determines if an object is extensible.Object.isExtensible()

Object.isFrozen()

Determines if an object is frozen.Object.isFrozen()

Object.isPrototypeOf()

Returns a boolean indicating whether this object is in the prototype chain of the specified object.Object.isPrototypeOf()

Object.isSealed()

Determines if an object is sealed.Object.isSealed()

Object.keys()

Returns an array of a given object's own enumerable property names.Object.keys()

Object.preventExtensions()

Prevents new properties from ever being added to an object.Object.preventExtensions()

propertyIsEnumerable()

Returns a boolean indicating if the specified property is enumerable.o.propertyIsEnumerable()

Object.prototype

The prototype of the Object constructor.Object.prototype

Object.seal()

Prevents other code from deleting properties of an object.Object.seal()

Object.setPrototypeOf()

Sets the prototype of a specified object to another object.Object.setPrototypeOf()

toLocaleString()

Returns a string representing the object, localized to the current locale.o.toLocaleString()

toString()

Returns a string representing the object.o.toString()

valueOf()

Returns the primitive value of the specified object.o.valueOf()

Object.values()

Returns an array of a given object's own enumerable property values.Object.values()

Object.is()

staticmethod

Determines whether two values are the same value. Object.is()

You seem to be offline. App may not work.