anru / sprout

A set of functions to work with nested data
BSD 3-Clause "New" or "Revised" License
56 stars 10 forks source link

deepMerge exception when trying to merge object onto null #8

Closed mackermedia closed 7 years ago

mackermedia commented 7 years ago
var item1 = { foo: { bar: null }}
var item2 = { foo: { bar: { id: 1 }}}

deepMerge(item1, item2)

Results in:

jstcki commented 7 years ago

Thanks for the request. Unfortunately, I don't really have time to maintain this module at the moment, and I don't use it myself anymore. So if you'd be interested to maintain it further, I'd be happy to hand it over 😄