Sha256: ee23c96ff637259512dfcd11eca50f081abf43d505aa7c18f4b933074da048a7

Contents?: true

Size: 780 Bytes

Versions: 273

Compression:

Stored size: 780 Bytes

Contents

var apply = require('./_apply'),
    arrayMap = require('./_arrayMap'),
    baseIteratee = require('./_baseIteratee'),
    baseRest = require('./_baseRest'),
    baseUnary = require('./_baseUnary'),
    flatRest = require('./_flatRest');

/**
 * Creates a function like `_.over`.
 *
 * @private
 * @param {Function} arrayFunc The function to iterate over iteratees.
 * @returns {Function} Returns the new over function.
 */
function createOver(arrayFunc) {
  return flatRest(function(iteratees) {
    iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
    return baseRest(function(args) {
      var thisArg = this;
      return arrayFunc(iteratees, function(iteratee) {
        return apply(iteratee, thisArg, args);
      });
    });
  });
}

module.exports = createOver;

Version data entries

273 entries across 271 versions & 29 rubygems

Version Path
disco_app-0.18.2 test/dummy/node_modules/lodash/_createOver.js
sumomo-0.8.15 data/sumomo/api_modules/node_modules/lodash/_createOver.js
trusty-cms-5.0.7 node_modules/lodash/_createOver.js
appmap-0.72.2 ./node_modules/lodash/_createOver.js
trusty-cms-5.0.6 node_modules/lodash/_createOver.js
appmap-0.72.1 ./node_modules/lodash/_createOver.js
appmap-0.72.0 ./node_modules/lodash/_createOver.js
trusty-cms-5.0.5 node_modules/lodash/_createOver.js
trusty-cms-5.0.4 node_modules/lodash/_createOver.js
appmap-0.71.0 ./node_modules/lodash/_createOver.js
disco_app-0.16.1 test/dummy/node_modules/lodash/_createOver.js
appmap-0.70.2 ./node_modules/lodash/_createOver.js
sumomo-0.8.14 data/sumomo/api_modules/node_modules/lodash/_createOver.js
appmap-0.70.1 ./node_modules/lodash/_createOver.js
appmap-0.70.0 ./node_modules/lodash/_createOver.js
appmap-0.69.0 ./node_modules/lodash/_createOver.js
sumomo-0.8.13 data/sumomo/api_modules/node_modules/lodash/_createOver.js
appmap-0.68.2 ./node_modules/lodash/_createOver.js
appmap-0.68.1 ./node_modules/lodash/_createOver.js
disco_app-0.15.2 test/dummy/node_modules/lodash/_createOver.js