mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
Ensure LodashWrapper.prototype.thru exists before creating a wrapper in flow.
This commit is contained in:
@@ -3488,7 +3488,7 @@
|
|||||||
if (typeof func != 'function') {
|
if (typeof func != 'function') {
|
||||||
throw new TypeError(FUNC_ERROR_TEXT);
|
throw new TypeError(FUNC_ERROR_TEXT);
|
||||||
}
|
}
|
||||||
if (!wrapper && getFuncName(func) == 'wrapper') {
|
if (!wrapper && LodashWrapper.prototype.thru && getFuncName(func) == 'wrapper') {
|
||||||
wrapper = new LodashWrapper([]);
|
wrapper = new LodashWrapper([]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user