mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v3.2.0.
This commit is contained in:
@@ -3,6 +3,7 @@ import baseCallback from '../internal/baseCallback';
|
||||
import baseCreate from '../internal/baseCreate';
|
||||
import baseForOwn from '../internal/baseForOwn';
|
||||
import isArray from '../lang/isArray';
|
||||
import isFunction from '../lang/isFunction';
|
||||
import isObject from '../lang/isObject';
|
||||
import isTypedArray from '../lang/isTypedArray';
|
||||
|
||||
@@ -47,7 +48,7 @@ function transform(object, iteratee, accumulator, thisArg) {
|
||||
if (isArr) {
|
||||
accumulator = isArray(object) ? new Ctor : [];
|
||||
} else {
|
||||
accumulator = baseCreate(typeof Ctor == 'function' && Ctor.prototype);
|
||||
accumulator = baseCreate(isFunction(Ctor) && Ctor.prototype);
|
||||
}
|
||||
} else {
|
||||
accumulator = {};
|
||||
|
||||
Reference in New Issue
Block a user