Skip to content

toQuery

function toQuery(params): string;

Defined in: src/ui/api-client.ts:92

Build a query string ("?a=1&b=2", or "" when nothing is left), skipping undefined, null and "". Arrays are comma-joined (and skipped when empty); booleans become "true"/"false".

Parameter Type
params Record<string, QueryValue>

string