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"