JS BigInt.prototype
The BigInt.prototype
property represents the prototype for the BigInt
constructor.
Property attributes of BigInt.prototype |
---|
Writable |
Enumerable |
Configurable |
Description
All BigInt
instances inherit from BigInt.prototype
. The prototype object of the BigInt
constructor can be modified to affect all BigInt
instances.
Properties
BigInt.prototype.constructor
Returns the function that created this object’s instance. By default this is the BigInt
object.
Methods
BigInt.prototype.toLocaleString()
Returns a string with a language-sensitive representation of this number. Overrides the Object.prototype.toLocaleString()
method.
Returns a string representing the specified object in the specified radix (base). Overrides the Object.prototype.toString()
method.
Returns the primitive value of the specified object. Overrides the Object.prototype.valueOf()
method.
Specifications
Specification | Status |
---|---|
BigInt.prototype | Stage 3 |