extra-bigint.min

A BigInt can represent whole numbers larger than 2⁵³ - 1.

Usage no npm install needed!

<script type="module">
  import extraBigintMin from 'https://cdn.skypack.dev/extra-bigint.min';
</script>

README

A BigInt can represent whole numbers larger than 2⁵³ - 1.
📦 NPM, 😺 GitHub, 🏃 RunKit, 🌔 Minified, 📜 Files, 📰 JSDoc, 📘 Wiki.

Stability: Experimental.

This is browserified, minified version of extra-bigint.
It is exported as global variable bigint.
CDN: unpkg, jsDelivr.


const bigint = require("extra-bigint");
// import * as bigint from "extra-bigint";
// import * as bigint from "https://unpkg.com/extra-bigint@0.0.60/index.mjs"; (deno)

bigint.log2(10n);
bigint.log2(11n);
bigint.log2(12n);
// 3


Index

Name Action
is Checks if value is BigInt.