* Creates a function like `_.over`. * * @private * @param {Function} arrayFunc The function to iterate over iteratees. * @returns {Function} Returns the new over function.
(arrayFunc)
| 5344 | * @returns {Function} Returns the new over function. |
| 5345 | */ |
| 5346 | function createOver(arrayFunc) { |
| 5347 | return flatRest(function(iteratees) { |
| 5348 | iteratees = arrayMap(iteratees, baseUnary(getIteratee())); |
| 5349 | return baseRest(function(args) { |
| 5350 | var thisArg = this; |
| 5351 | return arrayFunc(iteratees, function(iteratee) { |
| 5352 | return apply(iteratee, thisArg, args); |
| 5353 | }); |
| 5354 | }); |
| 5355 | }); |
| 5356 | } |
| 5357 | |
| 5358 | /** |
| 5359 | * Creates the padding for `string` based on `length`. The `chars` string |