BigInt.prototype.valueOf()
valueOf()
方法返回
BigInt
对象包装的原始值。
语法
bigIntObj.valueOf()
返回值
表示指定
BigInt
对象的原始 BigInt 值。
例子
Using
valueOf
typeof Object(1n); // object typeof Object(1n).valueOf(); // bigint