Sha256: b9618d906573bc74fe3b34c5cfd6b86f30ff72e1292d4fcc26025d71b8e130cb

Contents?: true

Size: 497 Bytes

Versions: 291

Compression:

Stored size: 497 Bytes

Contents

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;

Version data entries

291 entries across 267 versions & 32 rubygems

Version Path
babel-schmooze-sprockets-0.1.1 node_modules/babel-helper-define-map/node_modules/lodash/_createInverter.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-helper-call-delegate/node_modules/lodash/_createInverter.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-generator/node_modules/lodash/_createInverter.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-core/node_modules/lodash/_createInverter.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-sticky-regex/node_modules/lodash/_createInverter.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-regenerator/node_modules/lodash/_createInverter.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-strict-mode/node_modules/lodash/_createInverter.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-register/node_modules/lodash/_createInverter.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-template/node_modules/lodash/_createInverter.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-parameters/node_modules/lodash/_createInverter.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-shorthand-properties/node_modules/lodash/_createInverter.js