main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
347 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var $BigInt = typeof BigInt !== 'undefined' && BigInt;
|
---|
4 |
|
---|
5 | module.exports = function hasNativeBigInts() {
|
---|
6 | return typeof $BigInt === 'function'
|
---|
7 | && typeof BigInt === 'function'
|
---|
8 | && typeof $BigInt(42) === 'bigint' // eslint-disable-line no-magic-numbers
|
---|
9 | && typeof BigInt(42) === 'bigint'; // eslint-disable-line no-magic-numbers
|
---|
10 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.