Opal-Estate-Pro/node_modules/cssnano/dist/lib/getMatch.js

14 lines
385 B
JavaScript
Raw Normal View History

2019-09-13 04:44:33 +02:00
"use strict";
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"];