1 var baseCreate = require('./_baseCreate'),
2 getPrototype = require('./_getPrototype'),
3 isPrototype = require('./_isPrototype');
6 * Initializes an object clone.
9 * @param {Object} object The object to clone.
10 * @returns {Object} Returns the initialized clone.
12 function initCloneObject(object) {
13 return (typeof object.constructor == 'function' && !isPrototype(object))
14 ? baseCreate(getPrototype(object))
18 module.exports = initCloneObject;