Function: notNaN()
notNaN(
errorMessage?):Validator<number,number,string>
Defined in: validation/validators/index.ts:300
Validates number is not NaN.
Parameters
errorMessage?
string
Custom error message (optional)
Returns
Validator<number, number, string>
Validator that checks for valid number
Example
notNaN()(42) // => Valid(42)
notNaN()(NaN) // => Invalid(['Must be a valid number'])