00001 var baseCreate = require('./_baseCreate'), 00002 getPrototype = require('./_getPrototype'), 00003 isPrototype = require('./_isPrototype'); 00004 00012 function initCloneObject(object) { 00013 return (typeof object.constructor == 'function' && !isPrototype(object)) 00014 ? baseCreate(getPrototype(object)) 00015 : {}; 00016 } 00017 00018 module.exports = initCloneObject;