Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 84x 84x 84x 4x 6x 6x 6x 1x 1x 5x 4x | import { isPlainObject } from '@vue/shared' import { DeprecationTypes, warnDeprecation } from './compatConfig' export function deepMergeData(to: any, from: any) { for (const key in from) { const toVal = to[key] const fromVal = from[key] if (key in to && isPlainObject(toVal) && isPlainObject(fromVal)) { __DEV__ && warnDeprecation(DeprecationTypes.OPTIONS_DATA_MERGE, null, key) deepMergeData(toVal, fromVal) } else { to[key] = fromVal } } return to } |