endsWith()
Validates that the string ends with the specified suffix.
endsWith(suffix: string, error?: StringConvertible): this;
Parameters
- suffix — The suffix to check for.
- error — Custom error message.
Return value
This builder, for chaining.
Related
interface Schema.StringBuilder static
A validation builder for string values.
