lhl 6ff0e96ad3 8-4-1 vor 1 Jahr
..
.github 6ff0e96ad3 8-4-1 vor 1 Jahr
test 6ff0e96ad3 8-4-1 vor 1 Jahr
.eslintignore 6ff0e96ad3 8-4-1 vor 1 Jahr
.eslintrc 6ff0e96ad3 8-4-1 vor 1 Jahr
.nycrc 6ff0e96ad3 8-4-1 vor 1 Jahr
CHANGELOG.md 6ff0e96ad3 8-4-1 vor 1 Jahr
LICENSE 6ff0e96ad3 8-4-1 vor 1 Jahr
README.md 6ff0e96ad3 8-4-1 vor 1 Jahr
index.js 6ff0e96ad3 8-4-1 vor 1 Jahr
package.json 6ff0e96ad3 8-4-1 vor 1 Jahr

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