Frontend/25_01_07/mai/node_modules/has-bigints/index.js
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

12 lines
374 B
JavaScript

'use strict';
var $BigInt = typeof BigInt !== 'undefined' && BigInt;
/** @type {import('.')} */
module.exports = function hasNativeBigInts() {
return typeof $BigInt === 'function'
&& typeof BigInt === 'function'
&& typeof $BigInt(42) === 'bigint' // eslint-disable-line no-magic-numbers
&& typeof BigInt(42) === 'bigint'; // eslint-disable-line no-magic-numbers
};