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

Function camelCaseToDashCase

packages/core/src/ng_reflect.ts:58–60  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

56const CAMEL_CASE_REGEXP = /([A-Z])/g;
57
58function camelCaseToDashCase(input: string): string {
59 return input.replace(CAMEL_CASE_REGEXP, (...m: any[]) => '-' + m[1].toLowerCase());
60}
61
62export function normalizeDebugBindingValue(value: any): string {
63 try {

Callers 1

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…