This commit is contained in:
John-David Dalton
2016-04-04 09:56:22 -07:00
parent 7a6b64b2f6
commit cf5d6b5bc8
3 changed files with 27 additions and 10 deletions

View File

@@ -4608,7 +4608,7 @@
*/
function createOver(arrayFunc) {
return rest(function(iteratees) {
iteratees = arrayMap(iteratees, getIteratee());
iteratees = arrayMap(baseFlatten(iteratees, 1), getIteratee());
return rest(function(args) {
var thisArg = this;
return arrayFunc(iteratees, function(iteratee) {
@@ -9592,7 +9592,7 @@
* @memberOf _
* @category Function
* @param {Function} func The function to wrap.
* @param {...Function} [transforms] The functions to transform
* @param {...(Function|Function[])} [transforms] The functions to transform.
* arguments, specified individually or in arrays.
* @returns {Function} Returns the new function.
* @example
@@ -9616,7 +9616,7 @@
* // => [100, 10]
*/
var overArgs = rest(function(func, transforms) {
transforms = arrayMap(transforms, getIteratee());
transforms = arrayMap(baseFlatten(transforms, 1), getIteratee());
var funcsLength = transforms.length;
return rest(function(args) {
@@ -14691,7 +14691,7 @@
* @memberOf _
* @since 4.0.0
* @category Util
* @param {...Function} iteratees The iteratees to invoke.
* @param {...(Function|Function[])} iteratees The iteratees to invoke.
* @returns {Function} Returns the new function.
* @example
*
@@ -14710,7 +14710,7 @@
* @memberOf _
* @since 4.0.0
* @category Util
* @param {...Function} predicates The predicates to check.
* @param {...(Function|Function[])} predicates The predicates to check.
* @returns {Function} Returns the new function.
* @example
*
@@ -14735,7 +14735,7 @@
* @memberOf _
* @since 4.0.0
* @category Util
* @param {...Function} predicates The predicates to check.
* @param {...(Function|Function[])} predicates The predicates to check.
* @returns {Function} Returns the new function.
* @example
*