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

Function objectToQueryParams

packages/shared/src/lib/links.ts:118–130  ·  view source on GitHub ↗
(params: Record<string, string>)

Source from the content-addressed store, hash-verified

116};
117
118export const objectToQueryParams = (params: Record<string, string>): string => {
119 const link = new URLSearchParams();
120
121 Object.entries(params).forEach(([param, value]) => {
122 if (value === undefined || value === null) {
123 return;
124 }
125
126 link.set(param, value);
127 });
128
129 return link.toString();
130};
131
132export const link = {
133 post: {

Callers 2

PlusMobileFunction · 0.90
usePostModalNavigationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected