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

Function removeQueryParam

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

Source from the content-addressed store, hash-verified

94 )}`;
95
96export const removeQueryParam = (url: string, param: string): string => {
97 const link = new URL(url);
98 link.searchParams.delete(param);
99 return link.toString();
100};
101
102export const setQueryParams = (
103 url: string,

Callers 2

Feed.spec.tsxFile · 0.90
onRemoveQueryParamsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected