项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

14 lines
385 B

  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = getMatchFactory;
  4. function getMatchFactory(mappings) {
  5. return function getMatch(args) {
  6. return args.reduce(function (list, arg, i) {
  7. return list.filter(function (keyword) {
  8. return keyword[1][i] === arg;
  9. });
  10. }, mappings);
  11. };
  12. }
  13. module.exports = exports["default"];