(to: any, from: any)
| 2 | import { DeprecationTypes, warnDeprecation } from './compatConfig' |
| 3 | |
| 4 | export function deepMergeData(to: any, from: any): any { |
| 5 | for (const key in from) { |
| 6 | const toVal = to[key] |
| 7 | const fromVal = from[key] |
| 8 | if (key in to && isPlainObject(toVal) && isPlainObject(fromVal)) { |
| 9 | __DEV__ && warnDeprecation(DeprecationTypes.OPTIONS_DATA_MERGE, null, key) |
| 10 | deepMergeData(toVal, fromVal) |
| 11 | } else { |
| 12 | to[key] = fromVal |
| 13 | } |
| 14 | } |
| 15 | return to |
| 16 | } |
nothing calls this directly
no test coverage detected