Mergify
const merge = ; { Object; } // { a: {x: 1, y: 1}, b: [ 2, 3 ], c: ['x', 'y'], d: new D({y: 5}), e: new Set([1, 3, 2]) }
- merges plain objects deeply
- handles Sets and Maps (native ones or immutablesjs, with duck-typing)
- concatenates arrays
- works well with configurations, like webpack ones
Similar to lodash's mergeWith, but with some nuances (search for 'lodash')
const mergeWith = ;const merge = o;