Aller au contenu

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.

URLSearchParams

string

string | null

the param value, or null when no key matches.