A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/valueOf below:

BigInt.prototype.valueOf() - JavaScript | MDN

BigInt.prototype.valueOf()

Baseline Widely available

The valueOf() method of BigInt values returns the wrapped primitive value of a BigInt object.

Try it
console.log(typeof Object(1n));
// Expected output: "object"

console.log(typeof Object(1n).valueOf());
// Expected output: "bigint"
Syntax Parameters

None.

Return value

A BigInt representing the primitive value of the specified BigInt object.

Examples Using 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