All files / lib getCurrencyAbbreviation.js

54.55% Statements 6/11
30% Branches 3/10
50% Functions 1/2
54.55% Lines 6/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23    1x       1x   1x   1x   1x                   1x
'use strict';
 
Object.defineProperty(exports, "__esModule", {
    value: true
});
 
var _getCountry = require('./getCountry');
 
var _getCountry2 = _interopRequireDefault(_getCountry);
 
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 
var getCurrencyAbbreviation = function getCurrencyAbbreviation(countryName) {
    var moreCountries = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
 
    var country = (0, _getCountry2.default)(countryName, moreCountries = undefined);
    if (country) {
        return country.cur;
    }
    return undefined;
};
 
exports.default = getCurrencyAbbreviation;