(target, source)
| 3 | } |
| 4 | |
| 5 | export function merge (target, source) { |
| 6 | Object.keys(source).forEach((key) => { |
| 7 | if (Object.prototype.toString.call(source).slice(8, -1) === 'Object') { |
| 8 | target[key] = merge(target[key] || {}, source[key]) |
| 9 | } else { |
| 10 | target[key] = source[key] |
| 11 | } |
| 12 | }) |
| 13 | return target |
| 14 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…