Baseline Widely available
La méthode valueOf()
renvoie la valeur primitive encapsulée dans un objet BigInt
.
console.log(typeof Object(1n));
// Expected output: "object"
console.log(typeof Object(1n).valueOf());
// Expected output: "bigint"
Syntaxe Valeur de retour
Un grand entier (big int) représentant la valeur primitive de l'objet BigInt
courant.
valueOf()
typeof Object(1n); // object
typeof Object(1n).valueOf(); // bigint
Spécifications Compatibilité des navigateurs Voir aussi
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4