Spec-Zone.ru › Valibot

toLowerCase

Creates a to lower case transformation action.

const Action = v.toLowerCase();

Returns

  • Action ToLowerCaseAction

Examples

The following examples show how toLowerCase can be used.

Lower case string

Schema that transforms a string to lower case.

const StringSchema = v.pipe(v.string(), v.toLowerCase());

Related

The following APIs can be combined with toLowerCase.

Schemas

any, custom, string

Methods

pipe

Utils

isOfKind, isOfType

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

Spec-Zone.ru

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