resolveJurisdictionByCountry
function resolveJurisdictionByCountry(country, fallback): null | JurisdictionDefined in: jurisdictions/index.ts:33
Resolve a jurisdiction from an ISO 3166-1 alpha-2 country code (e.g. ‘GB’).
Falls back to EU_GDPR for any country not explicitly mapped — the safer
default for an unknown EEA visitor. Returns null when the code is unknown
and no fallback is requested.
Parameters
| Parameter | Type | Default value |
|---|---|---|
country | undefined | string | undefined |
fallback | null | Jurisdiction | EU_GDPR |
Returns
null | Jurisdiction