Skip to content

toUpperCase ​

Converts the string to upper case. The result goes to data.

Signature ​

ts
function toUpperCase(): Action<string>

Example ​

Promo code ​

ts
pipe(string(), trim(), toUpperCase(), pattern(/^[A-Z0-9]{6,10}$/))

See also ​