MCPcopy Index your code
hub / github.com/simstudioai/sim / appendBrexArrayParam

Function appendBrexArrayParam

apps/sim/tools/brex/utils.ts:35–41  ·  view source on GitHub ↗
(query: URLSearchParams, key: string, value?: string)

Source from the content-addressed store, hash-verified

33 * Appends a comma-separated value as repeated query parameters (Brex array syntax).
34 */
35export function appendBrexArrayParam(query: URLSearchParams, key: string, value?: string): void {
36 if (!value) return
37 for (const item of value.split(',')) {
38 const trimmed = item.trim()
39 if (trimmed) query.append(key, trimmed)
40 }
41}
42
43/**
44 * Appends standard cursor/limit pagination parameters to a query.

Callers 4

utils.test.tsFile · 0.90
list_expenses.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected