source: trip-planner-front/node_modules/lodash/_createInverter.js@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 497 bytes
Line 
1var 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 */
11function createInverter(setter, toIteratee) {
12 return function(object, iteratee) {
13 return baseInverter(object, setter, toIteratee(iteratee), {});
14 };
15}
16
17module.exports = createInverter;
Note: See TracBrowser for help on using the repository browser.