UNPKG

vuse-rx

Version:

First-class rxjs support for Vue 3

10 lines 321 B
import { canMergeDeep } from './common'; export const deep = (state) => (mutation) => { for (const key in mutation) { state[key] = canMergeDeep(state, mutation, key) ? deep(state[key])(mutation[key]) : mutation[key]; } return state; }; //# sourceMappingURL=deep.js.map