open-embodied fa48161c03 gcc il y a 6 mois
..
.github fa48161c03 gcc il y a 6 mois
test fa48161c03 gcc il y a 6 mois
.eslintignore fa48161c03 gcc il y a 6 mois
.eslintrc fa48161c03 gcc il y a 6 mois
.nycrc fa48161c03 gcc il y a 6 mois
CHANGELOG.md fa48161c03 gcc il y a 6 mois
LICENSE fa48161c03 gcc il y a 6 mois
README.md fa48161c03 gcc il y a 6 mois
index.js fa48161c03 gcc il y a 6 mois
package.json fa48161c03 gcc il y a 6 mois

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