is-bigint (1.1.0)
Published 2026-02-24 13:58:17 +00:00 by atheaadmin
Installation
registry=npm install is-bigint@1.1.0"is-bigint": "1.1.0"About this package
is-bigint 
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
Dependencies
Dependencies
| ID | Version |
|---|---|
| has-bigints | ^1.0.2 |
Development Dependencies
| ID | Version |
|---|---|
| @arethetypeswrong/cli | ^0.17.0 |
| @ljharb/eslint-config | ^21.1.1 |
| @ljharb/tsconfig | ^0.2.0 |
| @types/for-each | ^0.3.3 |
| @types/object-inspect | ^1.13.0 |
| @types/tape | ^5.6.5 |
| auto-changelog | ^2.5.0 |
| encoding | ^0.1.13 |
| es-value-fixtures | ^1.5.0 |
| eslint | =8.8.0 |
| for-each | ^0.3.3 |
| has-tostringtag | ^1.0.2 |
| in-publish | ^2.0.1 |
| npmignore | ^0.3.1 |
| nyc | ^10.3.2 |
| object-inspect | ^1.13.3 |
| safe-publish-latest | ^2.0.0 |
| tape | ^5.9.0 |
| typescript | next |
Keywords
bigint
es
integer
is
