MCPcopy Create free account
hub / github.com/codecombat/codecombat / countryCodeToFlagEmoji

Function countryCodeToFlagEmoji

app/core/utils.js:205–208  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

203}
204
205const countryCodeToFlagEmoji = function (code) {
206 if ((code != null ? code.length : undefined) !== 2) { return code }
207 return (Array.from(code.toUpperCase()).map((c) => String.fromCodePoint(c.charCodeAt() + 0x1F1A5))).join('')
208}
209
210const countryCodeToName = function (code) {
211 let country

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected