MCPcopy Create free account
hub / github.com/RubyLouvre/anu / initCloneObject

Function initCloneObject

test/babel.js:28564–28566  ·  view source on GitHub ↗

* Initializes an object clone. * * @private * @param {Object} object The object to clone. * @returns {Object} Returns the initialized clone.

(object)

Source from the content-addressed store, hash-verified

28562 * @returns {Object} Returns the initialized clone.
28563 */
28564 function initCloneObject(object) {
28565 return typeof object.constructor == 'function' && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
28566 }
28567
28568 module.exports = initCloneObject;
28569

Callers 2

baseCloneFunction · 0.85
baseMergeDeepFunction · 0.85

Calls 1

isPrototypeFunction · 0.85

Tested by

no test coverage detected