I'm not familiar with modern JS and tooling to even try something.
References:
I'm not familiar with modern JS and tooling to even try something.
References:
globalThis.BigInt === BigInt
without any polyfill.
console.log(globalThis.BigInt === BigInt);
I did just 2 tests with Firefox 119.1.1 and it seems to work... Second test had intentional typo and failed as expected.
References:
https://github.com/tc39/proposal-global
I can't edit my older answer for some reason...
globalThis.BigInt === BigInt
core-js
's polyfill requires Chrome 71 or Firefox 65.
References:
Simply invoke
BigInt
and catch a possible exception: