Bump to v4.0.0.

This commit is contained in:
John-David Dalton
2015-09-17 17:52:09 -07:00
parent 1d77dfa4b7
commit 54e7baecc3
675 changed files with 11257 additions and 8085 deletions

View File

@@ -1,3 +1,6 @@
import baseCreate from './baseCreate';
import isFunction from '../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);
}
export default initCloneObject;