Module: sources/cores/numbers/isMax

Export function to validate if a value is a maximum javascript number
Author:
License:
Source:

Example

import { isMaxPositive } from 'itee-validators'

if( isMaxPositive( value ) ) {
    //...
} else {
    //...
}

Methods


<static> isMaxNegative(data)

Check if the given data is a maximum negative number
Parameters:
Name Type Description
data * The data to check against the maximum infinite state
Source:
Returns:
true if data is negative maximum, false otherwise
Type
boolean

<static> isMaxPositive(data)

Check if the given data is a maximum positive number
Parameters:
Name Type Description
data * The data to check against the positive maximum state
Source:
Returns:
true if data is positive maximum, false otherwise
Type
boolean