1 var isPlainObject = require('./isPlainObject');
4 * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
8 * @param {*} value The value to inspect.
9 * @param {string} key The key of the property to inspect.
10 * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
12 function customOmitClone(value) {
13 return isPlainObject(value) ? undefined : value;
16 module.exports = customOmitClone;