(code)
| 208 | } |
| 209 | |
| 210 | const countryCodeToName = function (code) { |
| 211 | let country |
| 212 | if ((code != null ? code.length : undefined) !== 2) { return code } |
| 213 | if (!(country = _.find(countries, { countryCode: code.toUpperCase() }))) { return code } |
| 214 | return titleize(country.country) |
| 215 | } |
| 216 | |
| 217 | const countryNameToCode = country => __guard__(_.find(countries, { country: (country != null ? country.toLowerCase() : undefined) }), x1 => x1.countryCode) |
| 218 |
nothing calls this directly
no test coverage detected