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

Function removeQueryParam

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

Source from the content-addressed store, hash-verified

56};
57
58export const removeQueryParam = (url: string, param: string): string => {
59 const link = new URL(url);
60 link.searchParams.delete(param);
61 return link.toString();
62};
63
64export const setQueryParams = (
65 url: string,

Callers 2

Feed.spec.tsxFile · 0.90
onRemoveQueryParamsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected