The Object constructor creates an object wrapper.
The Object constructor creates an object wrapper.
(assign this & args)
Method.
The Object.assign() method is used to copy the values of all own properties from one or more source objects to a target object. will return the target object.
Object.assign(target, ...sources)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
Method. The Object.assign() method is used to copy the values of all own properties from one or more source objects to a target object. will return the target object. `Object.assign(target, ...sources)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign`
(count this)
Property.
[Non Standard] [Obsolute]
The count property used to store the count of enumerable on the object, but it has been removed.
obj.__count__
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/count
Property. [Non Standard] [Obsolute] The __count__ property used to store the count of enumerable on the object, but it has been removed. `obj.__count__` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/count`
(create this & args)
Method.
The Object.create() method creates a new object, using an existing as the prototype of the newly created object.
Object.create(proto, [propertiesObject])
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create
Method. The Object.create() method creates a new object, using an existing as the prototype of the newly created object. `Object.create(proto, [propertiesObject])` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create`
(define-getter this prop func)
Method.
The defineGetter method binds an object's property to a function be called when that property is looked up.
obj.__defineGetter__(prop, func)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__
Method. The __defineGetter__ method binds an object's property to a function be called when that property is looked up. `obj.__defineGetter__(prop, func)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__`
(define-properties this obj props)
Method.
The Object.defineProperties() method defines new or modifies properties directly on an object, returning the object.
Object.defineProperties(obj, props)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties
Method. The Object.defineProperties() method defines new or modifies properties directly on an object, returning the object. `Object.defineProperties(obj, props)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties`
(define-property this obj prop descriptor)
Method.
The static method Object.defineProperty() defines a new property on an object, or modifies an existing property on an object, returns the object.
Object.defineProperty(obj, prop, descriptor)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty
Method. The static method Object.defineProperty() defines a new property on an object, or modifies an existing property on an object, returns the object. `Object.defineProperty(obj, prop, descriptor)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty`
(define-setter this prop fun)
Method.
The defineSetter method binds an object's property to a function be called when an attempt is made to set that property.
obj.__defineSetter__(prop, fun)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__
Method. The __defineSetter__ method binds an object's property to a function be called when an attempt is made to set that property. `obj.__defineSetter__(prop, fun)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__`
(entries this obj)
Method.
The Object.entries() method returns an array of a given object's
enumerable string-keyed property [key, value] pairs, in the same
as that provided by a for...in
loop (the difference being that
for-in loop enumerates properties in the prototype chain as well).
order of the array returned by Object.entries() does not depend
how an object is defined. If there is a need for certain ordering
the array should be sorted first like Object.entries(obj).sort((a,
=> b[0].localeCompare(a[0]));.
Object.entries(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries
Method. The Object.entries() method returns an array of a given object's enumerable string-keyed property [key, value] pairs, in the same as that provided by a `for...in` loop (the difference being that for-in loop enumerates properties in the prototype chain as well). order of the array returned by Object.entries() does not depend how an object is defined. If there is a need for certain ordering the array should be sorted first like Object.entries(obj).sort((a, => b[0].localeCompare(a[0]));. `Object.entries(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries`
(eval this string)
Method.
[Obsolute]
The Object.eval() method used to evaluate a string of JavaScript in the context of an object, however, this method has been removed.
obj.eval(string)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/eval
Method. [Obsolute] The Object.eval() method used to evaluate a string of JavaScript in the context of an object, however, this method has been removed. `obj.eval(string)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/eval`
(freeze this obj)
Method.
The Object.freeze() method freezes an object. A frozen object no longer be changed; freezing an object prevents new properties being added to it, existing properties from being removed, prevents the enumerability, configurability, or writability of existing and prevents the values of existing properties from being changed. addition, freezing an object also prevents its prototype from changed. freeze() returns the same object that was passed in.
Object.freeze(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze
Method. The Object.freeze() method freezes an object. A frozen object no longer be changed; freezing an object prevents new properties being added to it, existing properties from being removed, prevents the enumerability, configurability, or writability of existing and prevents the values of existing properties from being changed. addition, freezing an object also prevents its prototype from changed. freeze() returns the same object that was passed in. `Object.freeze(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze`
(from-entries this iterable)
Method.
The Object.fromEntries() method transforms a list of key-value into an object.
Object.fromEntries(iterable);
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries
Method. The Object.fromEntries() method transforms a list of key-value into an object. `Object.fromEntries(iterable);` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries`
(get-notifier this obj)
Method.
[Obsolute]
The Object.getNotifer() method was used to create an object that to synthetically trigger a change, but has been deprecated and in browsers.
Object.getNotifier(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getNotifier
Method. [Obsolute] The Object.getNotifer() method was used to create an object that to synthetically trigger a change, but has been deprecated and in browsers. `Object.getNotifier(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getNotifier`
(get-own-property-descriptor this obj prop)
Method.
The Object.getOwnPropertyDescriptor() method returns a property for an own property (that is, one directly present on an object not in the object's prototype chain) of a given object.
Object.getOwnPropertyDescriptor(obj, prop)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor
Method. The Object.getOwnPropertyDescriptor() method returns a property for an own property (that is, one directly present on an object not in the object's prototype chain) of a given object. `Object.getOwnPropertyDescriptor(obj, prop)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor`
(get-own-property-descriptors this obj)
Method.
The Object.getOwnPropertyDescriptors() method returns all own descriptors of a given object.
Object.getOwnPropertyDescriptors(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors
Method. The Object.getOwnPropertyDescriptors() method returns all own descriptors of a given object. `Object.getOwnPropertyDescriptors(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors`
(get-own-property-names this obj)
Method.
The Object.getOwnPropertyNames() method returns an array of all (including non-enumerable properties except for those which use found directly in a given object.
Object.getOwnPropertyNames(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames
Method. The Object.getOwnPropertyNames() method returns an array of all (including non-enumerable properties except for those which use found directly in a given object. `Object.getOwnPropertyNames(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames`
(get-own-property-symbols this obj)
Method.
The Object.getOwnPropertySymbols() method returns an array of symbol properties found directly upon a given object.
Object.getOwnPropertySymbols(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols
Method. The Object.getOwnPropertySymbols() method returns an array of symbol properties found directly upon a given object. `Object.getOwnPropertySymbols(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols`
(get-prototype-of this obj)
Method.
The Object.getPrototypeOf() method returns the prototype (i.e. value of the internal [[Prototype]] property) of the specified
Object.getPrototypeOf(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf
Method. The Object.getPrototypeOf() method returns the prototype (i.e. value of the internal [[Prototype]] property) of the specified `Object.getPrototypeOf(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf`
(has-own-property this prop)
Method.
The hasOwnProperty() method returns a boolean indicating whether object has the specified property as its own property (as opposed inheriting it).
obj.hasOwnProperty(prop)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty
Method. The hasOwnProperty() method returns a boolean indicating whether object has the specified property as its own property (as opposed inheriting it). `obj.hasOwnProperty(prop)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty`
(is this value1 value2)
Method.
The Object.is() method determines whether two values are the value.
Object.is(value1, value2);
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
Method. The Object.is() method determines whether two values are the value. `Object.is(value1, value2);` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is`
(is-extensible this obj)
Method.
The Object.isExtensible() method determines if an object is extensible it can have new properties added to it).
Object.isExtensible(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible
Method. The Object.isExtensible() method determines if an object is extensible it can have new properties added to it). `Object.isExtensible(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible`
(is-frozen this obj)
Method.
The Object.isFrozen() determines if an object is frozen.
Object.isFrozen(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen
Method. The Object.isFrozen() determines if an object is frozen. `Object.isFrozen(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen`
(is-prototype-of this object)
Method.
The isPrototypeOf() method checks if an object exists in another prototype chain.
prototypeObj.isPrototypeOf(object)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf
Method. The isPrototypeOf() method checks if an object exists in another prototype chain. `prototypeObj.isPrototypeOf(object)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf`
(is-sealed this obj)
Method.
The Object.isSealed() method determines if an object is sealed.
Object.isSealed(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isSealed
Method. The Object.isSealed() method determines if an object is sealed. `Object.isSealed(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isSealed`
(keys this obj)
Method.
The Object.keys() method returns an array of a given object's enumerable property names, in the same order as we get with a loop.
Object.keys(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys
Method. The Object.keys() method returns an array of a given object's enumerable property names, in the same order as we get with a loop. `Object.keys(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys`
(lookup-getter this sprop)
Method.
[Deprecated]
The lookupGetter method returns the function bound as a getter the specified property.
obj.__lookupGetter__(sprop)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__
Method. [Deprecated] The __lookupGetter__ method returns the function bound as a getter the specified property. `obj.__lookupGetter__(sprop)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__`
(lookup-setter this sprop)
Method.
[Deprecated]
The lookupSetter method returns the function bound as a setter the specified property.
obj.__lookupSetter__(sprop)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupSetter__
Method. [Deprecated] The __lookupSetter__ method returns the function bound as a setter the specified property. `obj.__lookupSetter__(sprop)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupSetter__`
(no-such-method this)
Property.
[Non Standard] [Obsolute]
The noSuchMethod property used to reference a function to executed when a non-existent method is called on an object, but function is no longer available.
obj.__noSuchMethod__ = fun
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/noSuchMethod
Property. [Non Standard] [Obsolute] The __noSuchMethod__ property used to reference a function to executed when a non-existent method is called on an object, but function is no longer available. `obj.__noSuchMethod__ = fun` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/noSuchMethod`
(observe this & args)
Method.
[Obsolute]
The Object.observe() method was used for asynchronously observing
changes to an object. It provided a stream of changes in the
in which they occur. However, this API has been deprecated and
from browsers. You can use the more general js.Proxy
object
Object.observe(obj, callback[, acceptList])
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe
Method. [Obsolute] The Object.observe() method was used for asynchronously observing changes to an object. It provided a stream of changes in the in which they occur. However, this API has been deprecated and from browsers. You can use the more general `js.Proxy` object `Object.observe(obj, callback[, acceptList])` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe`
(parent this)
Property.
[Non Standard] [Obsolute]
The parent property used to point to an object's context, it has been removed.
obj.__parent__
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/Parent
Property. [Non Standard] [Obsolute] The __parent__ property used to point to an object's context, it has been removed. `obj.__parent__` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/Parent`
(prevent-extensions this obj)
Method.
The Object.preventExtensions() method prevents new properties ever being added to an object (i.e. prevents future extensions the object).
Object.preventExtensions(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/preventExtensions
Method. The Object.preventExtensions() method prevents new properties ever being added to an object (i.e. prevents future extensions the object). `Object.preventExtensions(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/preventExtensions`
(property-is-enumerable this prop)
Method.
The propertyIsEnumerable() method returns a Boolean indicating the specified property is enumerable.
obj.propertyIsEnumerable(prop)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable
Method. The propertyIsEnumerable() method returns a Boolean indicating the specified property is enumerable. `obj.propertyIsEnumerable(prop)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable`
(proto this)
Property.
[Deprecated]
The proto property of Object.prototype
is an accessor property
getter function and a setter function) that exposes the internal
(either an object or js.null
) of the object through which it
accessed.
`var Circle = function () {}; var shape = {}; var circle = new Circle();
// Set the object prototype. // DEPRECATED. This is for example purposes only. DO NOT DO THIS in real code. shape.proto = circle;
// Get the object prototype console.log(shape.proto === circle); // true
var shape = function () {}; var p = { a: function () { console.log('aaa'); } }; shape.prototype.proto = p;
var circle = new shape(); circle.a(); // aaa console.log(shape.prototype === circle.proto); // true
// or var shape = function () {}; var p = { a: function () { console.log('a'); } };
var circle = new shape(); circle.proto = p; circle.a(); // a console.log(shape.prototype === circle.proto); // false
// or function test() {}; test.prototype.myname = function () { console.log('myname'); };
var a = new test(); console.log(a.proto === test.prototype); // true a.myname(); // myname
// or var fn = function () {}; fn.prototype.myname = function () { console.log('myname'); };
var obj = { proto: fn.prototype };
obj.myname(); // myname
Note: that is two underscores, followed by the five characters "proto", followed by two more underscores.`
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto
Property. [Deprecated] The __proto__ property of `Object.prototype` is an accessor property getter function and a setter function) that exposes the internal (either an object or `js.null`) of the object through which it accessed. `var Circle = function () {}; var shape = {}; var circle = new Circle(); // Set the object prototype. // DEPRECATED. This is for example purposes only. DO NOT DO THIS in real code. shape.__proto__ = circle; // Get the object prototype console.log(shape.__proto__ === circle); // true var shape = function () {}; var p = { a: function () { console.log('aaa'); } }; shape.prototype.__proto__ = p; var circle = new shape(); circle.a(); // aaa console.log(shape.prototype === circle.__proto__); // true // or var shape = function () {}; var p = { a: function () { console.log('a'); } }; var circle = new shape(); circle.__proto__ = p; circle.a(); // a console.log(shape.prototype === circle.__proto__); // false // or function test() {}; test.prototype.myname = function () { console.log('myname'); }; var a = new test(); console.log(a.__proto__ === test.prototype); // true a.myname(); // myname // or var fn = function () {}; fn.prototype.myname = function () { console.log('myname'); }; var obj = { __proto__: fn.prototype }; obj.myname(); // myname Note: that is two underscores, followed by the five characters \"proto\", followed by two more underscores.` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto`
(prototype this)
Property.
The Object.prototype is a property of the js.Object
constructor.
is also the end of a prototype chain.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/prototype
Property. The Object.prototype is a property of the `js.Object` constructor. is also the end of a prototype chain. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/prototype`
(seal this obj)
Method.
The Object.seal() method seals an object, preventing new properties being added to it and marking all existing properties as non-configurable. of present properties can still be changed as long as they are
Object.seal(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal
Method. The Object.seal() method seals an object, preventing new properties being added to it and marking all existing properties as non-configurable. of present properties can still be changed as long as they are `Object.seal(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal`
(set-count! this val)
Property.
[Non Standard] [Obsolute]
The count property used to store the count of enumerable on the object, but it has been removed.
obj.__count__
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/count
Property. [Non Standard] [Obsolute] The __count__ property used to store the count of enumerable on the object, but it has been removed. `obj.__count__` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/count`
(set-no-such-method! this val)
Property.
[Non Standard] [Obsolute]
The noSuchMethod property used to reference a function to executed when a non-existent method is called on an object, but function is no longer available.
obj.__noSuchMethod__ = fun
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/noSuchMethod
Property. [Non Standard] [Obsolute] The __noSuchMethod__ property used to reference a function to executed when a non-existent method is called on an object, but function is no longer available. `obj.__noSuchMethod__ = fun` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/noSuchMethod`
(set-parent! this val)
Property.
[Non Standard] [Obsolute]
The parent property used to point to an object's context, it has been removed.
obj.__parent__
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/Parent
Property. [Non Standard] [Obsolute] The __parent__ property used to point to an object's context, it has been removed. `obj.__parent__` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/Parent`
(set-proto! this val)
Property.
[Deprecated]
The proto property of Object.prototype
is an accessor property
getter function and a setter function) that exposes the internal
(either an object or js.null
) of the object through which it
accessed.
`var Circle = function () {}; var shape = {}; var circle = new Circle();
// Set the object prototype. // DEPRECATED. This is for example purposes only. DO NOT DO THIS in real code. shape.proto = circle;
// Get the object prototype console.log(shape.proto === circle); // true
var shape = function () {}; var p = { a: function () { console.log('aaa'); } }; shape.prototype.proto = p;
var circle = new shape(); circle.a(); // aaa console.log(shape.prototype === circle.proto); // true
// or var shape = function () {}; var p = { a: function () { console.log('a'); } };
var circle = new shape(); circle.proto = p; circle.a(); // a console.log(shape.prototype === circle.proto); // false
// or function test() {}; test.prototype.myname = function () { console.log('myname'); };
var a = new test(); console.log(a.proto === test.prototype); // true a.myname(); // myname
// or var fn = function () {}; fn.prototype.myname = function () { console.log('myname'); };
var obj = { proto: fn.prototype };
obj.myname(); // myname
Note: that is two underscores, followed by the five characters "proto", followed by two more underscores.`
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto
Property. [Deprecated] The __proto__ property of `Object.prototype` is an accessor property getter function and a setter function) that exposes the internal (either an object or `js.null`) of the object through which it accessed. `var Circle = function () {}; var shape = {}; var circle = new Circle(); // Set the object prototype. // DEPRECATED. This is for example purposes only. DO NOT DO THIS in real code. shape.__proto__ = circle; // Get the object prototype console.log(shape.__proto__ === circle); // true var shape = function () {}; var p = { a: function () { console.log('aaa'); } }; shape.prototype.__proto__ = p; var circle = new shape(); circle.a(); // aaa console.log(shape.prototype === circle.__proto__); // true // or var shape = function () {}; var p = { a: function () { console.log('a'); } }; var circle = new shape(); circle.__proto__ = p; circle.a(); // a console.log(shape.prototype === circle.__proto__); // false // or function test() {}; test.prototype.myname = function () { console.log('myname'); }; var a = new test(); console.log(a.__proto__ === test.prototype); // true a.myname(); // myname // or var fn = function () {}; fn.prototype.myname = function () { console.log('myname'); }; var obj = { __proto__: fn.prototype }; obj.myname(); // myname Note: that is two underscores, followed by the five characters \"proto\", followed by two more underscores.` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto`
(set-prototype! this val)
Property.
The Object.prototype is a property of the js.Object
constructor.
is also the end of a prototype chain.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/prototype
Property. The Object.prototype is a property of the `js.Object` constructor. is also the end of a prototype chain. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/prototype`
(set-prototype-of this obj prototype)
Method.
The Object.setPrototypeOf() method sets the prototype (i.e.,
internal [[Prototype]] property) of a specified object to another
or js.null
.
Object.setPrototypeOf(obj, prototype)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf
Method. The Object.setPrototypeOf() method sets the prototype (i.e., internal [[Prototype]] property) of a specified object to another or `js.null`. `Object.setPrototypeOf(obj, prototype)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf`
(to-locale-string this)
Method.
The toLocaleString() method returns a string representing the This method is meant to be overridden by derived objects for purposes.
obj.toLocaleString()
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString
Method. The toLocaleString() method returns a string representing the This method is meant to be overridden by derived objects for purposes. `obj.toLocaleString()` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString`
(to-source this & args)
Method.
[Non Standard]
The toSource() method returns a string representing the source of the object.
Object.toSource(); obj.toSource();
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toSource
Method. [Non Standard] The toSource() method returns a string representing the source of the object. `Object.toSource(); obj.toSource();` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toSource`
(to-string this)
Method.
The toString() method returns a string representing the object.
obj.toString()
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString
Method. The toString() method returns a string representing the object. `obj.toString()` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString`
(unobserve this obj callback)
Method.
[Obsolute]
The Object.unobserve() method was used to remove observers set
Object.observe()
, but has been deprecated and removed from
You can use the more general js.Proxy
object instead.
Object.unobserve(obj, callback)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/unobserve
Method. [Obsolute] The Object.unobserve() method was used to remove observers set `Object.observe()`, but has been deprecated and removed from You can use the more general `js.Proxy` object instead. `Object.unobserve(obj, callback)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/unobserve`
(unwatch this prop)
Method.
The unwatch() method removes a watchpoint set with the watch()
obj.unwatch(prop)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/unwatch
Method. The unwatch() method removes a watchpoint set with the `watch()` `obj.unwatch(prop)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/unwatch`
(value-of this)
Method.
The valueOf() method returns the primitive value of the specified
object.valueOf()
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf
Method. The valueOf() method returns the primitive value of the specified `object.valueOf()` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf`
(values this obj)
Method.
The Object.values() method returns an array of a given object's
enumerable property values, in the same order as that provided
a for...in
loop (the difference being that a for-in loop enumerates
in the prototype chain as well).
Object.values(obj)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values
Method. The Object.values() method returns an array of a given object's enumerable property values, in the same order as that provided a `for...in` loop (the difference being that a for-in loop enumerates in the prototype chain as well). `Object.values(obj)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values`
(watch this prop handler)
Method.
The watch() method watches for a property to be assigned a value runs a function when that occurs.
obj.watch(prop, handler)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch
Method. The watch() method watches for a property to be assigned a value runs a function when that occurs. `obj.watch(prop, handler)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close