has-bigints

v1.0.0
Determine if the JS environment has BigInt support.
BigInt bigints typeof ES2020

has-bigints Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Determine if the JS environment has BigInt support.

Example

var hasBigInts = require('has-bigints');

hasBigInts() === true; // if the environment has native BigInt support. Not polyfillable, not forgeable.

Tests

Simply clone the repo, npm install, and run npm test

Metadata

  • MIT
  • Whatever
  • Jordan Harband
  • released 8/11/2019

Downloads

Maintainers