Skip to content

pantoken / packages/utils/src / camelCase

関数: camelCase()

camelCase(kebab): string

ベータ

kebab-case の文字列を camelCase に変換します (color-background-brandcolorBackgroundBrand)。

パラメーター

kebab

string

戻り値

string

ts
import { camelCase } from "@pantoken/utils";

camelCase("color-background-brand"); // → "colorBackgroundBrand"