MCPcopy
hub / github.com/lodash/lodash / customOmitClone

Function customOmitClone

lodash.js:5689–5691  ·  view source on GitHub ↗

* Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain * objects. * * @private * @param {*} value The value to inspect. * @param {string} key The key of the property to inspect. * @returns {*} Returns the uncloned value or `undefined` to defer cloning

(value)

Source from the content-addressed store, hash-verified

5687 * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
5688 */
5689 function customOmitClone(value) {
5690 return isPlainObject(value) ? undefined : value;
5691 }
5692
5693 /**
5694 * A specialized version of `baseIsEqualDeep` for arrays with support for

Callers

nothing calls this directly

Calls 1

isPlainObjectFunction · 0.85

Tested by

no test coverage detected