MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / buildQueryString

Function buildQueryString

packages/ui-default/backendlib/misc.ts:51–54  ·  view source on GitHub ↗
(obj: Record<string, any>)

Source from the content-addressed store, hash-verified

49}
50
51export function buildQueryString(obj: Record<string, any>) {
52 return Object.entries(obj).filter(([key, value]) => value && !key.startsWith('__'))
53 .map(([key, value]) => `${key}=${encodeURIComponent(value)}`).join('&');
54}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected