index.js 374 B

1234567891011
  1. 'use strict';
  2. var $BigInt = typeof BigInt !== 'undefined' && BigInt;
  3. /** @type {import('.')} */
  4. module.exports = function hasNativeBigInts() {
  5. return typeof $BigInt === 'function'
  6. && typeof BigInt === 'function'
  7. && typeof $BigInt(42) === 'bigint' // eslint-disable-line no-magic-numbers
  8. && typeof BigInt(42) === 'bigint'; // eslint-disable-line no-magic-numbers
  9. };