Skip to content

Commit

Permalink
return all results in array
Browse files Browse the repository at this point in the history
see #35 for precedent
  • Loading branch information
therebelrobot committed Mar 9, 2016
1 parent 96bca6d commit d4b0f9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/countryjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}
Expand Down

0 comments on commit d4b0f9a

Please sign in to comment.