Created
May 22, 2024 03:39
-
-
Save jonrandy/d3a88912377dfd0c6f67cba5adad4d7a to your computer and use it in GitHub Desktop.
Get 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
// 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