Results 21 - 40 of 57

Object.unobserve()

The Object.unobserve() method was used to remove observers set by Object.observe(), but has been deprecated and removed from Browsers. You can use the more general Proxy object instead.
JavaScript Method Object Obsolete

Object.prototype.valueOf()

The valueOf() method returns the primitive value of the specified object.
JavaScript Method Object Prototype

Object.prototype.watch()

The watch() method watches for a property to be assigned a value and runs a function when that occurs.
JavaScript Method Object Prototype

RangeError

The RangeError object indicates an error when a value is not in the set or range of allowed values.
Error JavaScript Object RangeError

Working with objects

JavaScript is designed on a simple object-based paradigm. An object is a collection of properties, and a property is an association between a name (or key) and a value. A property's value can be a function, in which case the property is known as a method. In addition to objects that are predefined in the browser, you can define your own objects. This chapter describes how to use objects, properties, functions, and methods, and how to create your own objects.
beginner Beginner Comparing object Constructor Document Guide JavaScript Object

Method definitions

Starting with ECMAScript 2015 (ES6), a shorter syntax for method definitions on objects initializers is introduced. It is a shorthand for a function assigned to the method's name.
ECMAScript6 Functions JavaScript Object Syntax

Object.prototype.__defineGetter__()

The __defineGetter__ method binds an object's property to a function to be called when that property is looked up.
Deprecated JavaScript Method Object Prototype

Object.prototype.__defineSetter__()

The __defineSetter__ method binds an object's property to a function to be called when an attempt is made to set that property.
Deprecated JavaScript Method Object Prototype

Object.prototype.__lookupGetter__()

The __lookupGetter__ method returns the function bound as a getter to the specified property.
Deprecated JavaScript Method Object Prototype

Object.prototype.__lookupSetter__()

The __lookupSetter__ method returns the function bound as a setter to the specified property.
Deprecated JavaScript Method Object Prototype

Object.prototype.__count__

The __count__ property used to store the count of enumerable properties on the object, but it has been removed.
JavaScript Object Obsolete Property Prototype

Object.defineProperty()

The Object.defineProperty() method defines a new property directly on an object, or modifies an existing property on an object, and returns the object.
ECMAScript5 JavaScript JavaScript 1.8.5 Method Object

Object.entries()

The Object.entries() method returns an array of a given object's own enumerable property [key, value] pairs, in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).
Experimental JavaScript Method Object Reference

Object.isExtensible()

The Object.isExtensible() method determines if an object is extensible (whether it can have new properties added to it).
ECMAScript5 JavaScript JavaScript 1.8.5 Method Object

Object.isFrozen()

The Object.isFrozen() determines if an object is frozen.
ECMAScript5 JavaScript JavaScript 1.8.5 Method Object

Object.isSealed()

The Object.isSealed() method determines if an object is sealed.
ECMAScript5 JavaScript JavaScript 1.8.5 Method Object

Object.keys()

The Object.keys() method returns an array of a given object's own enumerable properties, in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).
ECMAScript5 JavaScript JavaScript 1.8.5 Method Object

Object.prototype.__noSuchMethod__

The __noSuchMethod__ property used to reference a function to be executed when a non-existent method is called on an object, but this function is no longer available.
JavaScript Object Obsolete Property Prototype

Object.prototype.__parent__

The __parent__ property used to point to an object's context, but it has been removed.
JavaScript Object Obsolete Property Prototype

Object.preventExtensions()

The Object.preventExtensions() method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object).
ECMAScript5 JavaScript JavaScript 1.8.5 Method Object