(name: string)
| 254 | * Read repeated query parameter values. |
| 255 | */ |
| 256 | export function getQueryParamValues(name: string): string[] { |
| 257 | if (typeof window === "undefined") return []; |
| 258 | const values = new URLSearchParams(window.location.search) |
| 259 | .getAll(name) |
| 260 | .map((value) => value.trim()) |
| 261 | .filter(Boolean); |
| 262 | return Array.from(new Set(values)); |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * Read a boolean-style query parameter. |
no outgoing calls
no test coverage detected