Skip to content

lowerCase

ts
function String.lowerCase<T extends string>(
    target: T,
): Lowercase<T>

Converts target string to lowercase.

Example

ts
import { String } from "@monstermann/string";

String.lowerCase("HELLO WORLD"); // "hello world"
String.lowerCase("Hello World"); // "hello world"
ts
import { String } from "@monstermann/string";

pipe("HELLO WORLD", String.lowerCase()); // "hello world"
pipe("Hello World", String.lowerCase()); // "hello world"