Skip to content

pantoken-root / packages/utils/src / camelCase

函式: camelCase() ​

camelCase(kebab): string

Beta(測試)

將 kebab-case 字串轉換為 camelCase (color-background-brand → colorBackgroundBrand).

參數 ​

kebab ​

string

回傳 ​

string

範例 ​

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

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