@monstermann/fn
Version:
A utility library for TypeScript.
25 lines (23 loc) • 544 B
JavaScript
import { dfdlT } from "@monstermann/dfdl";
import { camelCase } from "string-ts";
//#region src/string/camelCase.ts
/**
* `camelCase(target)`
*
* Converts `target` string to camelCase format.
*
* ```ts
* camelCase("hello world"); // "helloWorld"
* camelCase("hello-world"); // "helloWorld"
* ```
*
* ```ts
* pipe("hello world", camelCase()); // "helloWorld"
* pipe("hello-world", camelCase()); // "helloWorld"
* ```
*/
const camelCase$1 = dfdlT((target) => {
return camelCase(target);
}, 1);
//#endregion
export { camelCase$1 as camelCase };