Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

max-safe-int

mock-end94.1kMIT1.0.0

Return the maximum safe integer in JavaScript.

max, safe, maximum, int, integer, const

readme

max-safe-int

Return the maximum safe integer in JavaScript.

MIT License

Install

$ npm install --save max-safe-int 

Usage

var MAX_SAFE_INT = require('max-safe-int');
// => 9007199254740991
  • max-int - Return the maximum integer in JavaScript.
  • max-array-length - Return the maximum length of array in JavaScript.