aboutsummaryrefslogtreecommitdiff
path: root/node_modules/cssnano/dist/lib/getMatch.js
blob: 99cc0231f507eff97d1c817117c468e63c4cb113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"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"];