allowNaN
allowNaN()
作用
参数
示例
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); // fail最后更新于