getQueryParamCaseInsensitive
Ce contenu n’est pas encore disponible dans votre langue.
getQueryParamCaseInsensitive(
searchParams,key):string|null
Defined in: utils/url/queryParams.ts:24
Read a query parameter, matching its key case-insensitively.
An exact-case match wins when present, so a canonical link is never shadowed
by a mangled duplicate (?fctx=stale&fCtx=real resolves to real). Only when
the exact key is absent do we scan for a case-folded variant.
Parameters
Section titled “Parameters”searchParams
Section titled “searchParams”URLSearchParams
string
Returns
Section titled “Returns”string | null
the param value, or null when no key matches.