123456789101112131415161718192021222324252627282930313233343536 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = keyMap;
- function keyMap(list, keyFn) {
- return list.reduce(function (map, item) {
- map[keyFn(item)] = item;
- return map;
- }, Object.create(null));
- }
|