ES6
Number.MAX_SAFE_INTEGER
ponyfill
Ponyfill: A polyfill that doesn't overwrite the native method
$ npm install --save max-safe-integer
var MAX_SAFE_INTEGER = require('max-safe-integer');
console.log(MAX_SAFE_INTEGER);
//=> 9007199254740991
MIT © Sindre Sorhus