1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-10 23:23:49 +00:00
Files
musix-oss/node_modules/is-bigint/README.md
MatteZ02 30022c7634 Modules
2020-03-03 22:30:50 +02:00

1.3 KiB

#is-bigint Version Badge

Build Status 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