Export function to validate if a value is a safe integer number
- License:
- Source:
Example
import { isMaxSafeInteger } from 'itee-validators' if( isMaxSafeInteger( value ) ) { //... } else { //... }
Methods
-
<static> isMaxSafeInteger(data)
-
Check if the given data is a maximum safe integer number
Parameters:
Name Type Description data
* The data to check against the maximum safe integer state Returns:
true if data is a maximum safe integer, false otherwise- Type
- boolean
-
<static> isMinSafeInteger(data)
-
Check if the given data is a minimum safe integer number
Parameters:
Name Type Description data
* The data to check against the minimum safe integer state Returns:
true if data is a minimum safe integer, false otherwise- Type
- boolean