I've 2 objects
var obj1 = {a: 1, b: true, c: false};
var boj2 = {b: true, c: true, d: 1};
I would like to have a union of two object like this:
{a: 1, b: true, c: false, d: 1};
I've tried with $.extend
but it overwrites c
and I obtain
{a: 1, b: true, c: true, d: 1};
Some suggestions?