yrik 2fd3c19a01 提交 před 4 roky
..
.github eec7f449c9 first commit před 4 roky
test eec7f449c9 first commit před 4 roky
.eslintignore eec7f449c9 first commit před 4 roky
.eslintrc eec7f449c9 first commit před 4 roky
.nycrc 2fd3c19a01 提交 před 4 roky
CHANGELOG.md 2fd3c19a01 提交 před 4 roky
LICENSE eec7f449c9 first commit před 4 roky
README.md 2fd3c19a01 提交 před 4 roky
index.js eec7f449c9 first commit před 4 roky
package.json 2fd3c19a01 提交 před 4 roky

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