has-bigints

Determine if the JS environment has BigInt support.


Keywords
BigInt, bigints, typeof, ES2020
License
MIT
Install
npm install has-bigints@1.1.0

Documentation

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