validasaur
validasaur copied to clipboard
Add `notNaN()` rule
A nonNaN rule has been added since the existing rules like isNumber, isFloat, isNumeric, minNumber, maxNumber all pass when providing a NaN value.
To provide backwards compatibility, the existing rules have not been changed.
Furthermore, the README has been changed to provide a notice that the above rules don't check for NaN.
Would fix issues like https://github.com/emsifa/validasaur/issues/33