Bump to v4.6.0.

This commit is contained in:
John-David Dalton
2016-02-29 23:41:02 -08:00
parent 9055c4e483
commit 7da4c55415
65 changed files with 413 additions and 235 deletions

View File

@@ -1,5 +1,4 @@
import baseCreate from './_baseCreate';
import isFunction from './isFunction';
import isPrototype from './_isPrototype';
/** Built-in value references. */
@@ -13,7 +12,7 @@ var getPrototypeOf = Object.getPrototypeOf;
* @returns {Object} Returns the initialized clone.
*/
function initCloneObject(object) {
return (isFunction(object.constructor) && !isPrototype(object))
return (typeof object.constructor == 'function' && !isPrototype(object))
? baseCreate(getPrototypeOf(object))
: {};
}