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

Function getQueryParamFlag

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

Source from the content-addressed store, hash-verified

266 * Read a boolean-style query parameter.
267 */
268export function getQueryParamFlag(name: string): boolean {
269 const value = getQueryParam(name).toLowerCase();
270 return value === "1" || value === "true" || value === "yes";
271}
272
273/**
274 * Update query parameters while preserving the current hash.

Callers

nothing calls this directly

Calls 1

getQueryParamFunction · 0.85

Tested by

no test coverage detected