yrik 2fd3c19a01 提交 4 жил өмнө
..
.github eec7f449c9 first commit 4 жил өмнө
test eec7f449c9 first commit 4 жил өмнө
.eslintignore eec7f449c9 first commit 4 жил өмнө
.eslintrc eec7f449c9 first commit 4 жил өмнө
.nycrc 2fd3c19a01 提交 4 жил өмнө
CHANGELOG.md 2fd3c19a01 提交 4 жил өмнө
LICENSE eec7f449c9 first commit 4 жил өмнө
README.md 2fd3c19a01 提交 4 жил өмнө
index.js eec7f449c9 first commit 4 жил өмнө
package.json 2fd3c19a01 提交 4 жил өмнө

README.md

is-bigint Version Badge

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