|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
475 bytes
|
| Line | |
|---|
| 1 | var isPlainObject = require('./isPlainObject');
|
|---|
| 2 |
|
|---|
| 3 | /**
|
|---|
| 4 | * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
|
|---|
| 5 | * objects.
|
|---|
| 6 | *
|
|---|
| 7 | * @private
|
|---|
| 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`.
|
|---|
| 11 | */
|
|---|
| 12 | function customOmitClone(value) {
|
|---|
| 13 | return isPlainObject(value) ? undefined : value;
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | module.exports = customOmitClone;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.