(query: URLSearchParams, key: string, value?: string)
| 33 | * Appends a comma-separated value as repeated query parameters (Brex array syntax). |
| 34 | */ |
| 35 | export 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. |
no outgoing calls
no test coverage detected