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

Function camelToKebabCase

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

Source from the content-addressed store, hash-verified

11};
12
13const camelToKebabCase = (string: string) => {
14 if (!camelToKebabMap.has(string)) {
15 const result = string.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
16 camelToKebabMap.set(string, result);
17 }
18 return camelToKebabMap.get(string)!;
19};
20
21const pascalToKebabCase = (pascalString: string) => {
22 return camelToKebabCase(pascalString);

Callers 2

_updateAttributeFunction · 0.85
pascalToKebabCaseFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…