BigInt: arbitrary-precision integers in JavaScript
BigInt
s are a new numeric primitive in JavaScript that can represent integers with arbitrary precision. With BigInt
s, you can safely store and operate on large integers even beyond the safe integer limit for Number
s. This article walks through some use cases and explains the new functionality in Chrome 67 by comparing BigInt
s to Number
s in JavaScript.