Projekt

Obecné

Profil

Stáhnout (497 Bajtů) Statistiky
| Větev: | Revize:
1
var baseInverter = require('./_baseInverter');
2

    
3
/**
4
 * Creates a function like `_.invertBy`.
5
 *
6
 * @private
7
 * @param {Function} setter The function to set accumulator values.
8
 * @param {Function} toIteratee The function to resolve iteratees.
9
 * @returns {Function} Returns the new inverter function.
10
 */
11
function createInverter(setter, toIteratee) {
12
  return function(object, iteratee) {
13
    return baseInverter(object, setter, toIteratee(iteratee), {});
14
  };
15
}
16

    
17
module.exports = createInverter;
(177-177/634)