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