MCPcopy Create free account
hub / github.com/deployd/deployd / initCloneObject

Function initCloneObject

test-app/public/sinon.js:16798–16802  ·  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

16796 * @returns {Object} Returns the initialized clone.
16797 */
16798 function initCloneObject(object) {
16799 return (typeof object.constructor == 'function' && !isPrototype(object))
16800 ? baseCreate(getPrototype(object))
16801 : {};
16802 }
16803
16804 /**
16805 * Initializes an object clone based on its `toStringTag`.

Callers 2

baseCloneFunction · 0.85
baseMergeDeepFunction · 0.85

Calls 1

isPrototypeFunction · 0.85

Tested by

no test coverage detected