Iterate over objects and copy over primitives and arrays instead of using _.merge, as merge will not replace a config entry completely. For arrays in a target object, the arrays will have its indices replaced. This means if a source array is empty, the target array will be left alone. Similarly, if the target array is longer than a source array, there will be indices not touched in the target array.master
|
|
||
175 |
|
175 |
|
176 |
|
176 |
|
177 |
|
177 |
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
181 |
|
188 |
|
182 |
|
189 |
|
183 |
|
190 |
|