All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.lodash._createInverter.js Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
var baseInverter = require('./_baseInverter');

/**
 * Creates a function like `_.invertBy`.
 *
 * @private
 * @param {Function} setter The function to set accumulator values.
 * @param {Function} toIteratee The function to resolve iteratees.
 * @returns {Function} Returns the new inverter function.
 */
function createInverter(setter, toIteratee) {
  return function(object, iteratee) {
    return baseInverter(object, setter, toIteratee(iteratee), {});
  };
}

module.exports = createInverter;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy