0.0.62 ⢠Published 4 years ago
Checks if value is a BigInt.
š¦ NPM,
šŗ GitHub,
š RunKit,
š Minified,
š Files,
š° JSDoc,
š Wiki.
This is part of package extra-bigint.
bigint.is(x);
// x: a value
const bigint = require('extra-bigint');
bigint.is(-5n);
// true
bigint.is(5n);
// true
bigint.is(0n);
// true
References