Skip to content

Instantly share code, notes, and snippets.

@jonrandy
Created April 9, 2021 11:26
Show Gist options
  • Save jonrandy/c370dc79f8b01abd6be35708cfa326e6 to your computer and use it in GitHub Desktop.
Save jonrandy/c370dc79f8b01abd6be35708cfa326e6 to your computer and use it in GitHub Desktop.
Two letter country code to Flag Emoji
const getFlagEmoji = countryCode=>String.fromCodePoint(...[...countryCode.toUpperCase()].map(x=>0x1f1a5+x.charCodeAt(0)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment