Urara-Blog/node_modules/.pnpm-store/v3/files/59/e486872f239eddca0e71b29a7b05a9ee33535a8b93a06d06c157eb6b6d3b77c08c645fc181b389265373de3e69d09241034240ea8d12c09e03b3d873a4d678
2022-08-14 01:14:53 +08:00

16 lines
475 B
Text

var isPlainObject = require('./isPlainObject');
/**
* 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 to `_.cloneDeep`.
*/
function customOmitClone(value) {
return isPlainObject(value) ? undefined : value;
}
module.exports = customOmitClone;