MCPcopy Index your code
hub / github.com/github/awesome-copilot / getQueryParamValues

Function getQueryParamValues

website/src/scripts/utils.ts:256–263  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

254 * Read repeated query parameter values.
255 */
256export 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.

Callers 5

initInstructionsPageFunction · 0.90
initExtensionsPageFunction · 0.90
initWorkflowsPageFunction · 0.90
initHooksPageFunction · 0.90
initPluginsPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected