valueOf() 方法返回 BigInt 对象包装的原始值。
{{InteractiveExample("JavaScript Demo: BigInt.valueOf()")}}
```js interactive-example console.log(typeof Object(1n)); // Expected output: "object"
console.log(typeof Object(1n).valueOf()); // Expected output: "bigint"
## 语法
```plain
bigIntObj.valueOf()
返回值
表示指定 BigInt 对象的原始 BigInt 值。
示例
Using valueOf
typeof Object(1n); // object
typeof Object(1n).valueOf(); // bigint