TehShrike / deepmerge

A library for deep (recursive) merging of Javascript objects
MIT License
2.76k stars 216 forks source link

Non primitive values get lost #195

Closed iniatse closed 4 years ago

iniatse commented 4 years ago
this.parentElement = document.getElementById('container');
var obj = deepmerge({
    'chart': {
            'renderTo': this.parentElement,
        },
}, {})

console.log(obj);
//{
//    'chart': {
//          'renderTo': {}
//      },
//}

How can I make that my HTMLElement gets not lost during deepmerge?

iniatse commented 4 years ago

Ahh is isMergeableObject the solution?