Object Constructor
Object
Creates a new object or converts a value to an object.Static Methods
Object.keys
Returns an array of object’s own enumerable property names.Object.values
Returns an array of object’s own enumerable property values.Object.entries
Returns an array of object’s own enumerable property [key, value] pairs.Object.assign
Copies properties from source objects to a target object.Object.create
Creates a new object with specified prototype.Object.freeze
Freezes an object (makes it immutable).Object.isFrozen
Checks if an object is frozen.Object.seal
Seals an object (prevents adding/removing properties).Object.isSealed
Checks if an object is sealed.Object.preventExtensions
Prevents adding new properties to an object.Object.isExtensible
Checks if an object is extensible.Object.getOwnPropertyNames
Returns all own property names (including non-enumerable).Object.getOwnPropertyDescriptor
Gets a property descriptor.Object.getOwnPropertyDescriptors
Gets all property descriptors.Object.defineProperty
Defines a property with a descriptor.Object.defineProperties
Defines multiple properties.Object.getPrototypeOf
Gets the prototype of an object.Object.setPrototypeOf
Sets the prototype of an object.Object.hasOwn
Checks if object has own property (modern alternative to hasOwnProperty).Object.fromEntries
Creates an object from key-value pairs.Instance Methods
hasOwnProperty
Checks if object has own property.toString
Returns string representation.valueOf
Returns primitive value.Usage Examples
Object Manipulation
Property Iteration
Object Transformation
See Also
- Object API - Low-level Porffor object operations
- Array Built-ins - Array methods
- Global Functions - Object constructor