allowNaN
allowNaN()
Effect
Arguments
Example
const schema1 = racoon.number();
schema1.validate(NaN); // fail
const schema2 = racoon.number().allowNaN();
schema2.validate(NaN); // pass
const schema3 = racoon.number().allowNaN().required();
schema3.validate(NaN); // failLast updated