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

Function kebabToPascalCase

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

Source from the content-addressed store, hash-verified

29};
30
31const kebabToPascalCase = (src: string) => {
32 const cachedName = kebabToPascalMap.get(src);
33 if (cachedName) {
34 return cachedName;
35 }
36
37 const camelStr = kebabToCamelCase(src);
38 const result = camelStr.charAt(0).toUpperCase() + camelStr.slice(1);
39 kebabToPascalMap.set(src, result);
40 return result;
41};
42
43export {
44 kebabToCamelCase,

Callers 2

fireEventFunction · 0.85
fireDecoratorEventFunction · 0.85

Calls 2

kebabToCamelCaseFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…