(value: any, srcValue: any)
| 90 | } |
| 91 | |
| 92 | const customizer = (value: any, srcValue: any): any => { |
| 93 | // Handle arrays specially |
| 94 | if (Array.isArray(value) && Array.isArray(srcValue)) { |
| 95 | return srcValue.filter((item) => !isNil(item)); |
| 96 | } |
| 97 | |
| 98 | // Skip nullish values from source |
| 99 | if (isNil(srcValue)) { |
| 100 | return value; |
| 101 | } |
| 102 | }; |
| 103 | |
| 104 | // First, merge all objects |
| 105 | const merged = mergeWith({}, target, ...sources, customizer); |
nothing calls this directly
no outgoing calls
no test coverage detected