trimStart
Creates a trim start transformation action.
const Action = v.trimStart();
Returns
ActionTrimStartAction
Examples
The following examples show how trimStart can be used.
Trimmed string
Schema to trimStart the start of a string.
const StringSchema = v.pipe(v.string(), v.trimStart());
Related
The following APIs can be combined with trimStart.
Schemas
Methods
Utils
© Fabian Hiller
Licensed under the MIT License.
https://valibot.dev/api/trimStart/