BigInt.prototype.valueOf()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2020.
BigInt 值的 valueOf() 方法返回 BigInt 对象的封装原始值。
¥The valueOf() method of BigInt values returns the wrapped primitive value
of a BigInt object.
Try it
语法
参数
返回值
示例
使用 valueOf
规范
| Specification |
|---|
| ECMAScript Language Specification # sec-bigint.prototype.valueof |
浏览器兼容性
BCD tables only load in the browser
也可以看看
¥See also