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