Skip to content

Variable: CountryAlpha2

ts
const readonly CountryAlpha2: string[];

Array of all ISO 3166-1 alpha-2 country codes.

Provides a convenient list of two-letter country codes for validation, API integration, and standardized country identification.

Examples

typescript
// Validate an alpha-2 code
const isValidCode = CountryAlpha2.includes("US"); // true
typescript
// Create country code dropdown
const codeOptions = CountryAlpha2.map((code) => ({ value: code, label: code }));