Spec-Zone.ru › Valibot

toUpperCase

Creates a to upper case transformation action.

const Action = v.toUpperCase();

Returns

  • Action ToUpperCaseAction

Examples

The following examples show how toUpperCase can be used.

Lower case string

Schema that transforms a string to upper case.

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

Related

The following APIs can be combined with toUpperCase.

Schemas

any, custom, string

Methods

pipe

Utils

isOfKind, isOfType

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

Spec-Zone.ru

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