mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Bump to v3.2.0.
This commit is contained in:
@@ -3,6 +3,7 @@ var arrayEach = require('../internal/arrayEach'),
|
||||
baseCreate = require('../internal/baseCreate'),
|
||||
baseForOwn = require('../internal/baseForOwn'),
|
||||
isArray = require('../lang/isArray'),
|
||||
isFunction = require('../lang/isFunction'),
|
||||
isObject = require('../lang/isObject'),
|
||||
isTypedArray = require('../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