Remove type check in _.transform.

This commit is contained in:
John-David Dalton
2014-09-17 12:34:46 -07:00
parent 120020b4db
commit a0c50f9ef5

View File

@@ -7950,7 +7950,7 @@
accumulator = [];
} else if (isObject(object)) {
var Ctor = object.constructor;
accumulator = baseCreate(typeof Ctor == 'function' && Ctor.prototype);
accumulator = baseCreate(Ctor && Ctor.prototype);
} else {
accumulator = {};
}