mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Fix lazy methods to execute non-lazy methods performed in between.
This commit is contained in:
committed by
John-David Dalton
parent
7cf40576dd
commit
8612946bf5
@@ -10266,7 +10266,7 @@
|
||||
: lodash[methodName](this.value());
|
||||
}
|
||||
if (isLazy || isArray(value)) {
|
||||
var result = func.apply(isLazy ? value : new LazyWrapper(this), args);
|
||||
var result = func.apply(isLazy && !this.__queue__.length ? value : new LazyWrapper(this), args);
|
||||
return new LodashWrapper(result, chainAll);
|
||||
}
|
||||
return this.thru(function(value) {
|
||||
|
||||
Reference in New Issue
Block a user