15f62baf1d903ed7d0daecc3a0e26f9eb1c25d85a757e9640b0e1196221c746ae1a8caaf1ac86bb3ec72f739d773ce5440e6461c4f8ff16136fe5863d3dd26 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. };