number-utils
Number utility methods.
Install
$ npm install number-utils
Usage
const numberUtils = ; numberUtils;// => truenumberUtils;// => falsenumberUtils;// => false numberUtils;// A random integer between 5 and 9.
API
MIN_SAFE_INTEGER
The constant represents the minimum safe integer in JavaScript.
MAX_SAFE_INTEGER
The constant represents the maximum safe integer in JavaScript.
boolean isInteger(value)
Determines whether the passed value is an integer.
boolean isSafeInteger(value)
Determines whether the provided value is a number that is a safe integer.
integer random(min, max)
Returns a random integer greater than or equal to "min" and less than or equal "max".