mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Bump to v4.6.0.
This commit is contained in:
@@ -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))
|
||||
: {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user