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

Method transform

packages/common/src/pipes/case_conversion_pipes.ts:88–96  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

86 transform(value: null | undefined): null;
87 transform(value: string | null | undefined): string | null;
88 transform(value: string | null | undefined): string | null {
89 if (value == null) return null;
90 assertPipeArgument(TitleCasePipe, value);
91
92 return value.replace(
93 unicodeWordMatch,
94 (txt) => txt[0].toUpperCase() + txt.slice(1).toLowerCase(),
95 );
96 }
97}
98
99/**

Callers

nothing calls this directly

Calls 2

assertPipeArgumentFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected