int
int()
Effect
Restrict the detected number to be an integer.
Arguments
None
Example
const schema = racoon.number().int();
schema.validate(1); // pass
schema.validate(1.0); // pass
schema.validate(1.2); // fail
Last updated
Was this helpful?