validators/number library
Number Validators
This file contains validators for numeric values.
Functions
-
isGt(
num min) → IValidator -
Checks whether the given value is greater than
min -
isGte(
num min) → IValidator -
Checks whether the given value is greater or equal to
min -
isInRange(
num min, num max) → IValidator -
Checks whether the given numeric value is within the range
min,max(inclusive). -
isLt(
num max) → IValidator -
Checks whether the given value is less than
max -
isLte(
num max) → IValidator -
Checks whether the given value is less than or equal
max