Created
April 9, 2021 11:26
-
-
Save jonrandy/c370dc79f8b01abd6be35708cfa326e6 to your computer and use it in GitHub Desktop.
Two letter country code to Flag Emoji
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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