Sha256: 6792bf981c5d60a0eb3ecb192b9dafe913a1f96538df7620773fe1c64cdce24f
Contents?: true
Size: 460 Bytes
Versions: 26
Compression:
Stored size: 460 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getMatchFactory; function getMatchFactory(map) { return function getMatch(args) { const match = args.reduce((list, arg, i) => { return list.filter(keyword => keyword[1][i] === arg); }, map); if (match.length) { return match[0][0]; } return false; }; } module.exports = exports["default"];
Version data entries
26 entries across 25 versions & 8 rubygems