mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Add lazy _.compact test and cleanup previous fix.
This commit is contained in:
@@ -10266,7 +10266,9 @@
|
||||
: lodash[methodName](this.value());
|
||||
}
|
||||
if (isLazy || isArray(value)) {
|
||||
var result = func.apply(isLazy && !this.__queue__.length ? value : new LazyWrapper(this), args);
|
||||
var wrapper = (isLazy && !this.__queue__.length) ? value : new LazyWrapper(this),
|
||||
result = func.apply(wrapper, args);
|
||||
|
||||
return new LodashWrapper(result, chainAll);
|
||||
}
|
||||
return this.thru(function(value) {
|
||||
|
||||
Reference in New Issue
Block a user