caoge c760052ff9 机车状态修改 | 8 miesięcy temu | |
---|---|---|
.. | ||
.github | 8 miesięcy temu | |
test | 8 miesięcy temu | |
.eslintignore | 8 miesięcy temu | |
.eslintrc | 8 miesięcy temu | |
.nycrc | 8 miesięcy temu | |
CHANGELOG.md | 8 miesięcy temu | |
LICENSE | 8 miesięcy temu | |
README.md | 8 miesięcy temu | |
index.js | 8 miesięcy temu | |
package.json | 8 miesięcy temu |
Is this an ES BigInt value?
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)));
Simply clone the repo, npm install
, and run npm test