MCPcopy
hub / github.com/calcom/cal.diy / removeByKey

Function removeByKey

packages/lib/hooks/useTypedQuery.ts:77–81  ·  view source on GitHub ↗
(key: OutputOptionalKeys)

Source from the content-addressed store, hash-verified

75
76 // Delete a key from the query
77 function removeByKey(key: OutputOptionalKeys) {
78 const search = new URLSearchParams(parsedQuery);
79 search.delete(String(key));
80 router.replace(`${pathname}?${search.toString()}`);
81 }
82
83 // push item to existing key
84 function pushItemToKey<J extends ArrayOutputKeys>(key: J, value: ArrayOutput[J][number]) {

Callers 1

removeItemByKeyAndValueFunction · 0.85

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected