Spec-Zone.ru › Valibot

trimStart

Creates a trim start transformation action.

const Action = v.trimStart();

Returns

  • Action TrimStartAction

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

any, custom, string

Methods

pipe

Utils

isOfKind, isOfType

© Fabian Hiller
Licensed under the MIT License.
https://valibot.dev/api/trimStart/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API