camelCase
ts
function String.camelCase<T extends string>(
target: T,
): CamelCase<T>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"