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

Function removeTrailingSlash

adev/shared-docs/utils/url.utils.ts:26–31  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

24}
25
26export const removeTrailingSlash = (url: string): string => {
27 if (url.endsWith('/')) {
28 return url.slice(0, -1);
29 }
30 return url;
31};

Callers 1

getRelativeUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…