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

Function objectToQueryParams

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

Source from the content-addressed store, hash-verified

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

Callers 2

PlusMobileFunction · 0.90
usePostModalNavigationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected