Allow over, overEvery, and overSome to accept matchesProperty shorthands. [closes #2193]

This commit is contained in:
John-David Dalton
2016-04-01 09:00:32 -07:00
parent b8096df6d8
commit b257bb9c9e
3 changed files with 11 additions and 27 deletions

View File

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