index.js 321 B

12345678910
  1. 'use strict';
  2. var $BigInt = global.BigInt;
  3. module.exports = function hasNativeBigInts() {
  4. return typeof $BigInt === 'function'
  5. && typeof BigInt === 'function'
  6. && typeof $BigInt(42) === 'bigint' // eslint-disable-line no-magic-numbers
  7. && typeof BigInt(42) === 'bigint'; // eslint-disable-line no-magic-numbers
  8. };