country = function (e){if(e=e.trim().toUpperCase(),3===e.length&&(e=codes[e]),e in data){var a=data[e];return a.code=e,a}for(var n in data )if(data.hasOwnProperty(n)&&data[n].name.toUpperCase()===e.toUpperCase()){a=data[n],a.code=n;break}return"undefined"==typeof a?{}: a}
...
### iso3166.subdivision(country code, subdivision name)
Retrieves a subdivision by its country code and subdivision name,
ex ("US", "Indiana").
* * *
### iso3166.country(country code)
Retrieves a country by its code, ex "US", "SE", "SWE".
* * *
### iso3166.country(country name)
Retrieves a country by its name, ex "United States", "Sweden".
...
subdivision = function (e, a){if("undefined"==typeof a){a=e.trim().toUpperCase();var n=a.split("-");if(2!==n.length)return{};e=n[0],a=n[1]}3=== e.length&&(e=codes[e]);var t=e+"-"+a;if(!(e in data))return{};var i=data[e].sub,m=i[t];if("undefined"==typeof m){for(var o in i) if(i.hasOwnProperty(o)&&i[o].name.toUpperCase()===a.toUpperCase()){m=i[o],t=o;break}if("undefined"==typeof m)return{}}return m.countryName =data[e].name,m.countryCode=e,m.code=t,m.regionCode=2===t.split("-").length?t.split("-")[1]:"",m}
...
https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
## Examples
```js
> iso3166.subdivision("SE-O");
{ type: 'County',
name: 'Västra Götalands län',
countryName: 'Sweden',
countryCode: 'SE',
regionCode: 'O',
code: 'SE-O' }
...