A RetroSearch Logo

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

Search Query:

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

BigInt.prototype.valueOf() - JavaScript | MDN

BigInt.prototype.valueOf()

Baseline Widely available

valueOf() メソッドは、 BigInt オブジェクトにラップされたプリミティブ値を返します。

試してみましょう
console.log(typeof Object(1n));
// Expected output: "object"

console.log(typeof Object(1n).valueOf());
// Expected output: "bigint"
構文 返値

指定された BigInt オブジェクトのプリミティブ値を表す BigInt です。

例 valueOf の使用
typeof Object(1n); // object
typeof Object(1n).valueOf(); // bigint
仕様書 ブラウザーの互換性 関連情報

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