All files / lib getCurrencyAbbreviationFromName.js

80% Statements 8/10
75% Branches 3/4
33.33% Functions 1/3
80% Lines 8/10
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   2x   1x           1x
'use strict';
 
Object.defineProperty(exports, "__esModule", {
    value: true
});
 
var _currencyMap = require('./map/currency-map');
 
var _currencyMap2 = _interopRequireDefault(_currencyMap);
 
var _lodash = require('lodash.findkey');
 
var _lodash2 = _interopRequireDefault(_lodash);
 
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 
var getCurrencyAbbreviationFromName = function getCurrencyAbbreviationFromName(currencyName) {
    return (0, _lodash2.default)(_currencyMap2.default, function (c) {
        return c.name === currencyName;
    });
};
 
exports.default = getCurrencyAbbreviationFromName;