* Creates a clone of `value`. If `isDeep` is `true` nested objects are cloned, * otherwise they are assigned by reference. If `customizer` is provided it is * invoked to produce the cloned values. If `customizer` returns `undefined` * cloning is handled by the method instead. The `cus
(value, isDeep, customizer, thisArg)
| 9794 | * // => 0 |
| 9795 | */ |
| 9796 | function clone(value, isDeep, customizer, thisArg) { |
| 9797 | if (isDeep && typeof isDeep != 'boolean' && isIterateeCall(value, isDeep, customizer)) { |
| 9798 | isDeep = false; |
| 9799 | } |
| 9800 | else if (typeof isDeep == 'function') { |
| 9801 | thisArg = customizer; |
| 9802 | customizer = isDeep; |
| 9803 | isDeep = false; |
| 9804 | } |
| 9805 | customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 1); |
| 9806 | return baseClone(value, isDeep, customizer); |
| 9807 | } |
| 9808 | |
| 9809 | /** |
| 9810 | * Creates a deep clone of `value`. If `customizer` is provided it is invoked |
nothing calls this directly
no test coverage detected