source: imaps-frontend/node_modules/lodash-es/_createInverter.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 495 bytes
RevLine 
[d565449]1import baseInverter from './_baseInverter.js';
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
17export default createInverter;
Note: See TracBrowser for help on using the repository browser.