The valueOf() method of BigInt values returns the wrapped primitive value of a BigInt object.
console.log(typeof Object(1n));
// Expected output: "object"
console.log(typeof Object(1n).valueOf());
// Expected output: "bigint"valueOf()None.
A BigInt representing the primitive value of the specified BigInt object.
valueOftypeof Object(1n); // object
typeof Object(1n).valueOf(); // bigint