Optionalvalue: anyThe initial value of Object.prototype.constructor is the standard built-in Object constructor.
Determines whether an object has a property with the specified name.
A property name.
Determines whether an object exists in another object's prototype chain.
Another object whose prototype chain is to be checked.
Determines whether a specified property is enumerable.
A property name.
Returns a date converted to a string using the current locale.
Returns a string representation of an object.
Returns the primitive value of the specified object.
StaticabsReturns the absolute value, preserving the representation.
the numeric value
the absolute value
StaticaddAdds two numeric values with contagion.
the left operand
the right operand
the sum
StaticassignCopy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
The target object to copy to.
One or more source objects from which to copy properties
StaticceilingRounds toward positive infinity to an integer (bigint).
the numeric value
the ceiling integer
StaticcompareCompares two numeric values across representations.
the left operand
the right operand
a negative number, zero, or a positive number
StaticcreateCreates an object that has the specified prototype or that has null prototype.
Object to use as a prototype. May be null.
Creates an object that has the specified prototype, and that optionally contains specified properties.
Object to use as a prototype. May be null
JavaScript object that contains one or more property descriptors.
StaticdefineAdds one or more properties to an object, and/or modifies attributes of existing properties.
Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
StaticdefineAdds a property to an object, or modifies attributes of an existing property.
Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
The property name.
Descriptor for the property. It can be for a data property or an accessor property.
StaticdivideDivides two numeric values with contagion. Exact division of exact
operands yields an exact result (an integer or a rational, CL
semantics: (/ 1 2) is 1/2). Division of exact operands by exact
zero throws a RangeError.
the left operand
the right operand
the quotient
StaticeitherReturns whether either operand is a float (which forces float contagion).
the left operand
the right operand
a boolean
StaticentriesReturns an array of key/values of the enumerable own properties of an object
Returns an array of key/values of the enumerable own properties of an object
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
StaticequalsReturns whether two numeric values are numerically equal (across
representations, like CL =): (= 1 1.0) holds, (= 1/2 0.5) holds.
the left operand
the right operand
a boolean
StaticexptRaises a base to a power. Exact for an exact base with a non-negative integer exponent; otherwise computed as floats.
the base
the exponent
the power
StaticfloorRounds toward negative infinity to an integer (bigint).
the numeric value
the floor integer
StaticfreezePrevents the modification of existing property attributes and values, and prevents the addition of new properties.
Object on which to lock the attributes.
StaticfromReturns an object created by key-value entries for properties and methods
An iterable object that contains key-value entries for properties and methods.
StaticgetGets the own property descriptor of the specified object. An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
Object that contains the property.
Name of the property.
StaticgetReturns an object containing all own property descriptors of an object
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
StaticgetReturns the names of the own properties of an object. The own properties of an object are those that are defined directly on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
Object that contains the own properties.
StaticgetReturns an array of all symbol properties found directly on object o.
Object to retrieve the symbols from.
StaticgetReturns the prototype of an object.
The object that references the prototype.
StatichasDetermines whether an object has a property with the specified name.
An object.
A property name.
StaticisReturns true if the values are the same value, false otherwise.
The first value.
The second value.
StaticisReturns a value that indicates whether new properties can be added to an object.
Object to test.
StaticisReturns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
Object to test.
StaticisReturns whether the given value belongs to the numeric tower.
the value to test
a boolean
StaticisReturns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
Object to test.
StatickeysReturns the names of the enumerable string properties and methods of an object.
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
Returns the names of the enumerable string properties and methods of an object.
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
StaticmodReturns the remainder with the sign behavior of JS % (truncated
division), preserving exactness for exact operands.
the dividend
the divisor
the remainder
StaticmultiplyMultiplies two numeric values with contagion.
the left operand
the right operand
the product
StaticnegateNegates a numeric value, preserving its representation.
the numeric value
the negated value
StaticpreventStaticroundRounds half away from zero to an integer (bigint), matching
Math.round for floats.
the numeric value
the rounded integer
StaticsealStaticsetSets the prototype of a specified object o to object proto or null. Returns the object o.
The object to change its prototype.
The value of the new prototype or null.
StaticsubtractSubtracts two numeric values with contagion.
the left operand
the right operand
the difference
StatictoReturns the float approximation of a numeric value.
the numeric value
the float approximation
StatictoReturns an exact value as a Rational-shaped pair (bigint stays n/1).
an exact numeric value (bigint or Rational)
the numerator and denominator
StatictoConverts an integral numeric value into a JS array/list index.
the numeric value
the index as a number, or null when not an integral value
StatictruncateTruncates toward zero to an integer (bigint).
the numeric value
the truncated integer
StaticvaluesReturns an array of values of the enumerable own properties of an object
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
Classdesc
Arithmetic over the numeric tower (integer → rational → float). Operations on exact operands (bigint / Rational) stay exact; as soon as a float is involved the result is a float (float contagion), matching the Common Lisp / Scheme numeric towers and Clojure's Ratio arithmetic.
Author
Keisuke Ikeda
This