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