Zhouyiping 5a7c95461a first commit 3 일 전
..
.github 5a7c95461a first commit 3 일 전
test 5a7c95461a first commit 3 일 전
.eslintignore 5a7c95461a first commit 3 일 전
.eslintrc 5a7c95461a first commit 3 일 전
.nycrc 5a7c95461a first commit 3 일 전
CHANGELOG.md 5a7c95461a first commit 3 일 전
LICENSE 5a7c95461a first commit 3 일 전
README.md 5a7c95461a first commit 3 일 전
index.js 5a7c95461a first commit 3 일 전
package.json 5a7c95461a first commit 3 일 전

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