mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Ensure fp.over doesn't cap its iteratee args.
This commit is contained in:
10
lodash.js
10
lodash.js
@@ -4624,9 +4624,15 @@
|
||||
*/
|
||||
function createOver(arrayFunc) {
|
||||
return rest(function(iteratees) {
|
||||
var toIteratee = getIteratee();
|
||||
|
||||
iteratees = (iteratees.length == 1 && isArray(iteratees[0]))
|
||||
? arrayMap(iteratees[0], getIteratee())
|
||||
: arrayMap(baseFlatten(iteratees, 1, isFlattenableIteratee), getIteratee());
|
||||
? iteratees[0]
|
||||
: baseFlatten(iteratees, 1, isFlattenableIteratee);
|
||||
|
||||
iteratees = arrayMap(iteratees, function(iteratee) {
|
||||
return toIteratee(iteratee, Infinity);
|
||||
});
|
||||
|
||||
return rest(function(args) {
|
||||
var thisArg = this;
|
||||
|
||||
Reference in New Issue
Block a user