Export function to validate if a value is zero, with a special sign
- License:
- Source:
Example
import { isZero } from 'itee-validators' if( isZero( value ) ) { //... } else { //... }
Methods
-
<static> isZero(data)
-
Check if the given data is zero
Parameters:
Name Type Description data
* The data to check against the zero value - Source:
Returns:
true if data is zero, false otherwise- Type
- boolean
-
<static> isZeroNegative(data)
-
Check if the given data is a negative zero
Parameters:
Name Type Description data
* The data to check against the negative zero value - Source:
Returns:
true if data is a negative zero, false otherwise- Type
- boolean
-
<static> isZeroPositive(data)
-
Check if the given data is a positive zero
Parameters:
Name Type Description data
* The data to check against the positive zero value - Source:
Returns:
true if data is a positive zero, false otherwise- Type
- boolean