(self: string): stringConverts a string to camelCase.
When to use
Use to normalize mixed word separators or existing PascalCase/camelCase text into lower-initial camelCase identifiers.
Source effect/String.ts:13564 lines
export const const camelCase: (self: string) => stringConverts a string to camelCase.
When to use
Use to normalize mixed word separators or existing PascalCase/camelCase text
into lower-initial camelCase identifiers.
camelCase: (self: stringself: string) => string = const noCase: (options?: {
readonly splitRegExp?: RegExp | ReadonlyArray<RegExp> | undefined;
readonly stripRegExp?: RegExp | ReadonlyArray<RegExp> | undefined;
readonly delimiter?: string | undefined;
readonly transform?: (part: string, index: number, parts: ReadonlyArray<string>) => string;
}) => (self: string) => string (+1 overload)
noCase({
delimiter?: string | undefineddelimiter: "",
transform?: | ((
part: string,
index: number,
parts: ReadonlyArray<string>
) => string)
| undefined
transform: const camelCaseTransform: (
input: string,
index: number
) => string
camelCaseTransform
})