Baseline Widely available
The valueOf()
method of BigInt
values returns the wrapped primitive value of a BigInt
object.
console.log(typeof Object(1n));
// Expected output: "object"
console.log(typeof Object(1n).valueOf());
// Expected output: "bigint"
Syntax Parameters
None.
Return valueA BigInt representing the primitive value of the specified BigInt
object.
valueOf
typeof Object(1n); // object
typeof Object(1n).valueOf(); // bigint
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4