Skip to content

camelCase

Converts kebab-case to camelCase

Available since v1.9.0

import { camelCase } from '@helpers4/string';
camelCase(str: string): string
ParameterTypeDescription
strstringThe kebab-case string to convert

string — String in camelCase

Converts a kebab-case string to camelCase.

camelCase('my-component-name')
// => 'myComponentName'

View source on GitHub