Skip to content

camelCase

String.camelCase(target)

Converts target string to camelCase format.

Example

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

String.camelCase("hello world"); // "helloWorld"
String.camelCase("hello-world"); // "helloWorld"
ts
import { String } from "@monstermann/string";

pipe("hello world", String.camelCase()); // "helloWorld"
pipe("hello-world", String.camelCase()); // "helloWorld"