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

Function objectToQueryParams

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

Source from the content-addressed store, hash-verified

73};
74
75export const objectToQueryParams = (params: Record<string, string>): string => {
76 const link = new URLSearchParams();
77
78 Object.entries(params).forEach(([param, value]) => {
79 if (value === undefined || value === null) {
80 return;
81 }
82
83 link.set(param, value);
84 });
85
86 return link.toString();
87};
88
89export const link = {
90 post: {

Callers 2

PlusMobileFunction · 0.90
usePostModalNavigationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected