skip to Main Content

I’m not familiar with modern JS and tooling to even try something.

References:

https://github.com/tc39/proposal-bigint

2

Answers


  1. Chosen as BEST ANSWER

    globalThis.BigInt === BigInt

    core-js's polyfill requires Chrome 71 or Firefox 65.

    References:

    https://github.com/tc39/proposal-global

    http://zloirock.github.io/core-js/compat/


  2. if('BigInt' in window) (or if(window.BigInt)) should suffice.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search