Initial commit

This commit is contained in:
anaarmas
2020-04-27 21:08:38 +02:00
commit ed9e55c0bf
13975 changed files with 2635882 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
var baseCreate = require('./_baseCreate'),
getPrototype = require('./_getPrototype'),
isPrototype = require('./_isPrototype');
/**
* Initializes an object clone.
*
* @private
* @param {Object} object The object to clone.
* @returns {Object} Returns the initialized clone.
*/
function initCloneObject(object) {
return (typeof object.constructor == 'function' && !isPrototype(object))
? baseCreate(getPrototype(object))
: {};
}
module.exports = initCloneObject;