MCPcopy
hub / github.com/lodash/lodash / initCloneObject

Function initCloneObject

lodash.js:6262–6266  ·  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

6260 * @returns {Object} Returns the initialized clone.
6261 */
6262 function initCloneObject(object) {
6263 return (typeof object.constructor == 'function' && !isPrototype(object))
6264 ? baseCreate(getPrototype(object))
6265 : {};
6266 }
6267
6268 /**
6269 * 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