553e84c9f6031c1c6817bfb67d64d73e47b2bfd0cb0fe8e645860cce598349cccef8aed1f26aea06eade61fb0d6de7f2a8bfd284c650d886334fa5a9bd8b09 486 B

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