MCPcopy Create free account
hub / github.com/api-platform/website / trimLink

Function trimLink

pwa/components/docs/DocMenu.tsx:17–17  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

15}
16
17const trimLink = (str: string) => str.replace(/\/$/, "");
18
19function NavPart({ title, link, links, basePath, autoOpen }: NavPartProps) {
20 const pathname = usePathname();

Callers 1

NavPartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected