Home > @shopware-pwa/helpers > mapCountries
# mapCountries() function
Map available countries to (name: string | null, id: string) format
Signature:
export declare function mapCountries(countries: Country[]): Array<{
name: string | null;
id: string;
}>;
# Parameters
| Parameter | Type | Description |
|---|---|---|
| countries | Country[] |
Returns:
Array<{ name: string | null; id: string; }>
MappedCountries