diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-09-15 22:56:40 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-15 22:56:40 +0900 |
| commit | af49aea3d62765395371fca6aee7c4e1c09402b1 (patch) | |
| tree | 8db8afd46cb591ba8e580ea5e2a5157e469e1584 /files/ja/web/javascript/reference/global_objects/bigint/valueof | |
| parent | d3a323f4d82ee694c7ed326e1948f011f0aca844 (diff) | |
| download | translated-content-af49aea3d62765395371fca6aee7c4e1c09402b1.tar.gz translated-content-af49aea3d62765395371fca6aee7c4e1c09402b1.tar.bz2 translated-content-af49aea3d62765395371fca6aee7c4e1c09402b1.zip | |
Global_Objects/BigInt を更新 (#2387)
- 2021/07/21 時点の英語版に同期
- `toLocaleString()`, `valueOf()` については新規翻訳
Diffstat (limited to 'files/ja/web/javascript/reference/global_objects/bigint/valueof')
| -rw-r--r-- | files/ja/web/javascript/reference/global_objects/bigint/valueof/index.md | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/files/ja/web/javascript/reference/global_objects/bigint/valueof/index.md b/files/ja/web/javascript/reference/global_objects/bigint/valueof/index.md new file mode 100644 index 0000000000..c0f82adbb5 --- /dev/null +++ b/files/ja/web/javascript/reference/global_objects/bigint/valueof/index.md @@ -0,0 +1,48 @@ +--- +title: BigInt.prototype.valueOf() +slug: Web/JavaScript/Reference/Global_Objects/BigInt/valueOf +tags: + - BigInt + - JavaScript + - メソッド + - プロトタイプ + - valueOf() +browser-compat: javascript.builtins.BigInt.valueOf +translate_of: Web/JavaScript/Reference/Global_Objects/BigInt/valueOf +--- +{{JSRef}} + +**`valueOf()`** メソッドは、 {{jsxref("BigInt")}} オブジェクトにラップされたプリミティブ値を返します。 + +{{EmbedInteractiveExample("pages/js/bigint-valueof.html","shorter")}} + +## 構文 + +```js +bigIntObj.valueOf() +``` + +### 返値 + +指定された {{jsxref("BigInt")}} オブジェクトのプリミティブ値を表す BigInt です。 + +## 例 + +### `valueOf` の使用 + +```js +typeof Object(1n); // object +typeof Object(1n).valueOf(); // bigint +``` + +## 仕様書 + +{{Specifications}} + +## ブラウザーの互換性 + +{{Compat}} + +## 関連情報 + +- {{jsxref("BigInt.prototype.toString()")}} |
