-
Notifications
You must be signed in to change notification settings - Fork 2
Subhajit Sahu edited this page Aug 9, 2022
·
2 revisions
Check if value is a bigint.
function is(x)
// x: a value
const xbigint = require('extra-bigint');
xbigint.is(314n);
// → true
xbigint.is(-707n);
// → true
xbigint.is("314n");
// → false
xbigint.is({"value": 314n});
// → false
xbigint.is(null);
// → false