All files / lib getCountryByAbbreviation.js

88.89% Statements 8/9
75% Branches 3/4
50% Functions 1/2
88.89% Lines 8/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21    1x       1x   1x   1x   1x   2x   1x       1x
'use strict';
 
Object.defineProperty(exports, "__esModule", {
    value: true
});
 
var _countryMap = require('./map/country-map');
 
var _countryMap2 = _interopRequireDefault(_countryMap);
 
var _lodash = require('lodash.findkey');
 
var _lodash2 = _interopRequireDefault(_lodash);
 
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 
var getCountryByAbbreviation = function getCountryByAbbreviation(countryAbbr) {
    return (0, _lodash2.default)(_countryMap2.default, { 'abbr': countryAbbr });
};
 
exports.default = getCountryByAbbreviation;