orionsoft-react-scripts
Version:
Orionsoft Configuration and scripts for Create React App.
14 lines (13 loc) • 385 B
JavaScript
exports.__esModule = true;
exports.default = getMatchFactory;
function getMatchFactory(mappings) {
return function getMatch(args) {
return args.reduce(function (list, arg, i) {
return list.filter(function (keyword) {
return keyword[1][i] === arg;
});
}, mappings);
};
}
module.exports = exports["default"];
;