index.js 347 B

12345678910
  1. 'use strict';
  2. var $BigInt = typeof BigInt !== 'undefined' && 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. };