Skip to content

pantoken-root / packages/utils/src / camelCase

फंक्शन: camelCase() ​

camelCase(kebab): string

बीटा

kebab-case स्ट्रिंग को camelCase में बदलें (color-background-brand → colorBackgroundBrand).

पैरामीटर ​

kebab ​

string

वापसी ​

string

उदाहरण ​

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

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