Skip to content

toLowerCase ​

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

Signature ​

ts
function toLowerCase(): Action<string>

Example ​

Email and username ​

ts
const Login = object({
  email: pipe(string(), trim(), toLowerCase(), email()),
  username: pipe(string(), toLowerCase()),
});

See also ​