Closed bwhrsc closed 4 years ago
Workaround:
const bigIntFromString = BigInt (bigInteger.toString());
You'll have to use the workaround because the .valueOf
function of BigInt returns a JavaScript number, which removes precision. If you want to maintain precision you need to convert it to a string first.
Output:
Environment: