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

Function joinUrls

packages/service-worker/config/src/generator.ts:186–193  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

184}
185
186function joinUrls(a: string, b: string): string {
187 if (a.endsWith('/') && b.startsWith('/')) {
188 return a + b.slice(1);
189 } else if (!a.endsWith('/') && !b.startsWith('/')) {
190 return a + '/' + b;
191 }
192 return a + b;
193}
194
195function withOrderedKeys<T extends {[key: string]: any}>(unorderedObj: T): T {
196 const orderedObj = {} as {[key: string]: any};

Callers 3

processMethod · 0.85
processAssetGroupsMethod · 0.85
urlToRegexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…