JavaScript: Object Object

By Xah Lee. Date: . Last updated: .

Object is the value of the property key "Object" of the global object.

console.log ( window["Object"] === Object ); // true

Object is a function.

〔►see JavaScript: Data Types

// type of Object
console.log ( typeof Object === "function" ); // true

The parent of Object is Function.prototype.

// parent of Object object
console.log ( Object.getPrototypeOf ( Object ) === Function.prototype ); // true

The purpose of Object is:

  1. To convert primitive value (such as string, number, boolean) to a object. (by Object(…))
  2. Used as a namespace to hold general purpose methods for working with objects. For example, Object.isExtensible(…).
  3. Holds the property key "prototype". The value of Object.prototype is the root parent object of all standard objects. (so they inherit useful methods.) 〔►see JavaScript: Prototype and Inheritance

For tutorial, see JavaScript: Object System Overview.

Object Consructor

JavaScript: Object Constructor

See also: JavaScript: Object Literal Expression

Properties


Object.prototype

The value of Object.prototype is the root parent of all standard builtin objects.

〔►see JavaScript: Object.prototype


Object.create

〔►see JavaScript: Object.create

Object.assign

〔►see JavaScript: Object.assign

Object.getPrototypeOf

〔►see JavaScript: Object.getPrototypeOf

Object.setPrototypeOf

〔►see JavaScript: Object.setPrototypeOf

Object.getOwnPropertyDescriptor

〔►see JavaScript: Object.getOwnPropertyDescriptor

Object.defineProperty

〔►see JavaScript: Object.defineProperty

Object.defineProperties

〔►see JavaScript: Object.defineProperties


Object.getOwnPropertyNames

〔►see JavaScript: Object.getOwnPropertyNames

Object.getOwnPropertySymbols

〔►see JavaScript: Object.getOwnPropertySymbols


Object.keys

〔►see JavaScript: Object.keys


Object.is

〔►see JavaScript: Object.is

Object.isExtensible

〔►see JavaScript: Object.isExtensible

Object.isFrozen

〔►see JavaScript: Object.isFrozen

Object.isSealed

〔►see JavaScript: Object.isSealed


Object.preventExtensions

〔►see JavaScript: Object.preventExtensions

Object.freeze

〔►see JavaScript: Object.freeze

Object.seal

〔►see JavaScript: Object.seal

Reference

ECMAScript 2015 §Fundamental Objects#sec-object-objects

Object and Inheritance Topic

  1. JavaScript: Object System Overview
  2. JavaScript: What's Object?
  3. JavaScript: Prototype and Inheritance
  4. JavaScript: Create Object
  5. JavaScript: Object Literal Expression
  6. JavaScript: Find Object's Prototype
  7. JavaScript: How to Create Object with Parent X?
  8. JavaScript: Prevent Adding Property
  9. JavaScript: Determine Type of Object
  10. JavaScript: Primitive Value Object Wrapper
  11. JavaScript: Clone, Deep Copy Object/Array
  12. JavaScript: Test Equality of Objects

  1. JavaScript: Object Object
  2. JavaScript: Object.prototype
Like what you read? Buy JavaScript in Depth
or, buy a new keyboard, see Keyboard Reviews.