flagEmoji
function flagEmoji(iso2): string;The flag emoji for an ISO 3166-1 alpha-2 code.
Two regional-indicator symbols, which every modern platform renders as a flag. No icon font, no sprite sheet, no 250 SVGs — and it inherits the field’s font-size for free.
Windows is the known exception: it renders the two letters instead of a flag, which is a legible fallback rather than a broken image.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
iso2 | string |
Returns
Section titled “Returns”string