UNPKG

@e-group/redux-modules

Version:

eGroup team react-redux modules that share across projects.

8 lines (7 loc) 213 B
import mergeWith from 'lodash.mergewith'; export default function merger(a, b) { if (a && typeof a === 'object' && !Array.isArray(a) && !Array.isArray(b)) { return mergeWith(a, b, merger); } return b; }