cmy a6e36702ec 2023-3-1 il y a 2 ans
..
.github a6e36702ec 2023-3-1 il y a 2 ans
test a6e36702ec 2023-3-1 il y a 2 ans
.eslintignore a6e36702ec 2023-3-1 il y a 2 ans
.eslintrc a6e36702ec 2023-3-1 il y a 2 ans
.nycrc a6e36702ec 2023-3-1 il y a 2 ans
CHANGELOG.md a6e36702ec 2023-3-1 il y a 2 ans
LICENSE a6e36702ec 2023-3-1 il y a 2 ans
README.md a6e36702ec 2023-3-1 il y a 2 ans
index.js a6e36702ec 2023-3-1 il y a 2 ans
package.json a6e36702ec 2023-3-1 il y a 2 ans

README.md

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