mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Remove type check in _.transform.
This commit is contained in:
@@ -7950,7 +7950,7 @@
|
|||||||
accumulator = [];
|
accumulator = [];
|
||||||
} else if (isObject(object)) {
|
} else if (isObject(object)) {
|
||||||
var Ctor = object.constructor;
|
var Ctor = object.constructor;
|
||||||
accumulator = baseCreate(typeof Ctor == 'function' && Ctor.prototype);
|
accumulator = baseCreate(Ctor && Ctor.prototype);
|
||||||
} else {
|
} else {
|
||||||
accumulator = {};
|
accumulator = {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user