Skip to content

Instantly share code, notes, and snippets.

@jonrandy
Created May 22, 2024 03:39
Show Gist options
  • Save jonrandy/d3a88912377dfd0c6f67cba5adad4d7a to your computer and use it in GitHub Desktop.
Save jonrandy/d3a88912377dfd0c6f67cba5adad4d7a to your computer and use it in GitHub Desktop.
Get Flag Emoji
// pass in 2 letter country code
const getFlagEmoji = countryCode=>String.fromCodePoint(...[...countryCode.toUpperCase()].map(x=>0x1f1a5+x.charCodeAt()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment