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

#is-bigint Version Badge

Build Status 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.0.4                                ...           latest (4 years ago)

3 Versions

  • 1.0.4                                ...           4 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org