diff --git a/lib/countryjs.js b/lib/countryjs.js index 1799ade..0bb5e7c 100644 --- a/lib/countryjs.js +++ b/lib/countryjs.js @@ -37,11 +37,11 @@ var Country = function () { var key = findIndex[normalizeName(country)] return _countryList[key] } else if (type === 'ccn3') { - return _.find(_countryList, function (thiscountry) { + return _.filter(_countryList, function (thiscountry) { return thiscountry.codes.ccn3 === country }) } else { - return _.find(_countryList, function (thiscountry) { + return _.filter(_countryList, function (thiscountry) { return thiscountry.codes.ccn2 === country }) }