e486872f239eddca0e71b29a7b05a9ee33535a8b93a06d06c157eb6b6d3b77c08c645fc181b389265373de3e69d09241034240ea8d12c09e03b3d873a4d678 475 B

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