MCPcopy Create free account
hub / github.com/UI5/webcomponents / kebabToCamelCase

Function kebabToCamelCase

packages/base/src/util/StringHelper.ts:5–11  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

3const kebabToPascalMap = new Map<string, string>();
4
5const kebabToCamelCase = (string: string) => {
6 if (!kebabToCamelMap.has(string)) {
7 const result = toCamelCase(string.split("-"));
8 kebabToCamelMap.set(string, result);
9 }
10 return kebabToCamelMap.get(string)!;
11};
12
13const camelToKebabCase = (string: string) => {
14 if (!camelToKebabMap.has(string)) {

Callers 7

checkAttributeUsageFunction · 0.85
getInitialStateMethod · 0.85
_updateSlotsFunction · 0.85
_clearSlotFunction · 0.85
attributeChangedCallbackFunction · 0.85
_generateAccessorsFunction · 0.85
kebabToPascalCaseFunction · 0.85

Calls 2

toCamelCaseFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…