Bump to v4.0.0.

This commit is contained in:
John-David Dalton
2015-08-24 10:34:23 -07:00
parent 4ef16c96e5
commit 0646bacd86
665 changed files with 24828 additions and 19696 deletions

View File

@@ -1,3 +1,6 @@
var baseCreate = require('./baseCreate'),
isFunction = require('../isFunction');
/**
* Initializes an object clone.
*
@@ -7,10 +10,7 @@
*/
function initCloneObject(object) {
var Ctor = object.constructor;
if (!(typeof Ctor == 'function' && Ctor instanceof Ctor)) {
Ctor = Object;
}
return new Ctor;
return baseCreate(isFunction(Ctor) ? Ctor.prototype : undefined);
}
module.exports = initCloneObject;