is-bigint
Is this value an ES BigInt?
Last updated a year ago by ljharb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-bigint 
SYNC missed versions from official npm registry.

is-bigint Version Badge

github actions coverage 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

Current Tags

  • 1.1.0                                ...           latest (a year ago)

6 Versions

  • 1.1.0                                ...           a year ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 81
This Month 115
Last Day 15
Last Week 51
Last Month 286
Dependencies (1)
Dev Dependencies (19)

Copyright 2013 - present © cnpmjs.org | Home |