Get Country Flag using ISO Country Code
Wouldn’t it be nice to be able to easily convert a regular ISO 3166-1 alpha-2 country code to its respective Unicode emoji flag?
Here we go...
'GB'.toUpperCase().replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397));
This will tu...
blog.victor-abz.com1 min read
casiimir
front end 'n' outer space
Cool, thank you for sharing!