MCPcopy Create free account
hub / github.com/dailydotdev/apps / removeQueryParam

Function removeQueryParam

packages/shared/src/lib/links.ts:101–105  ·  view source on GitHub ↗
(url: string, param: string)

Source from the content-addressed store, hash-verified

99 `${buildIconUrl(url, size)}&fallback=none`;
100
101export const removeQueryParam = (url: string, param: string): string => {
102 const link = new URL(url);
103 link.searchParams.delete(param);
104 return link.toString();
105};
106
107export const setQueryParams = (
108 url: string,

Callers 2

Feed.spec.tsxFile · 0.90
onRemoveQueryParamsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected