number
number()
Effect
Get a schema object of type number.
Parameter
None
Example
const schema = racoon.number();
schema.validate('abc'); // fail
schema.validate(123); // pass
Last updated
Was this helpful?
number()
Get a schema object of type number.
None
const schema = racoon.number();
schema.validate('abc'); // fail
schema.validate(123); // pass
Last updated
Was this helpful?