MCPcopy Index your code
hub / github.com/angular/angular / camelToDashCase

Function camelToDashCase

packages/elements/src/utils.ts:28–30  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

26 * Convert a camelCased string to kebab-cased.
27 */
28export function camelToDashCase(input: string): string {
29 return input.replace(/[A-Z]/g, (char) => `-${char.toLowerCase()}`);
30}
31
32/**
33 * Check whether the input is an `Element`.

Callers 2

utils_spec.tsFile · 0.90

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…