* Creates a function like `_.over`. * * @private * @param {Function} arrayFunc The function to iterate over iteratees. * @returns {Function} Returns the new over function.
(arrayFunc)
| 15882 | * @returns {Function} Returns the new over function. |
| 15883 | */ |
| 15884 | function createOver(arrayFunc) { |
| 15885 | return flatRest(function(iteratees) { |
| 15886 | iteratees = arrayMap(iteratees, baseUnary(getIteratee())); |
| 15887 | return baseRest(function(args) { |
| 15888 | var thisArg = this; |
| 15889 | return arrayFunc(iteratees, function(iteratee) { |
| 15890 | return apply(iteratee, thisArg, args); |
| 15891 | }); |
| 15892 | }); |
| 15893 | }); |
| 15894 | } |
| 15895 | |
| 15896 | /** |
| 15897 | * Creates the padding for `string` based on `length`. The `chars` string |