hrms-manual/node_modules/is-bigint
2023-09-06 14:51:44 +07:00
..
.github first commit 2023-09-06 14:51:44 +07:00
test first commit 2023-09-06 14:51:44 +07:00
.eslintignore first commit 2023-09-06 14:51:44 +07:00
.eslintrc first commit 2023-09-06 14:51:44 +07:00
.nycrc first commit 2023-09-06 14:51:44 +07:00
CHANGELOG.md first commit 2023-09-06 14:51:44 +07:00
index.js first commit 2023-09-06 14:51:44 +07:00
LICENSE first commit 2023-09-06 14:51:44 +07:00
package.json first commit 2023-09-06 14:51:44 +07:00
README.md first commit 2023-09-06 14:51:44 +07:00

is-bigint Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this an ES BigInt value?

Example

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)));

Tests

Simply clone the repo, npm install, and run npm test