has-bigints

Determine if the JS environment has BigInt support.

Usage no npm install needed!

<script type="module">
  import hasBigints from 'https://cdn.skypack.dev/has-bigints';
</script>

README

has-bigints Version Badge

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