peach a19a732be8 commit message | 2 rokov pred | |
---|---|---|
.. | ||
.github | 2 rokov pred | |
test | 2 rokov pred | |
.eslintignore | 2 rokov pred | |
.eslintrc | 2 rokov pred | |
.nycrc | 2 rokov pred | |
CHANGELOG.md | 2 rokov pred | |
LICENSE | 2 rokov pred | |
README.md | 2 rokov pred | |
index.js | 2 rokov pred | |
package.json | 2 rokov pred |
Is this an ES BigInt value?
var isBigInt = require('is-bigint');
assert(!isBigInt(function () {}));
assert(!isBigInt(null));
assert(!isBigInt(function* () { yield 42; return Infinity; });
assert(!isBigInt(Symbol('foo')));
assert(isBigInt(1n));
assert(isBigInt(Object(1n)));
Simply clone the repo, npm install
, and run npm test