main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
374 bytes
|
Rev | Line | |
---|
[d565449] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | var $BigInt = typeof BigInt !== 'undefined' && BigInt;
|
---|
| 4 |
|
---|
[79a0317] | 5 | /** @type {import('.')} */
|
---|
[d565449] | 6 | module.exports = function hasNativeBigInts() {
|
---|
| 7 | return typeof $BigInt === 'function'
|
---|
| 8 | && typeof BigInt === 'function'
|
---|
| 9 | && typeof $BigInt(42) === 'bigint' // eslint-disable-line no-magic-numbers
|
---|
| 10 | && typeof BigInt(42) === 'bigint'; // eslint-disable-line no-magic-numbers
|
---|
| 11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.