ES6
Number.MAX_SAFE_INTEGERponyfill
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);
//=> 9007199254740991MIT © Sindre Sorhus