How can I merge objects' properties into an object in Javascript/JQuery ?
I have the following two objects, obj & obj2:
var obj = {
a: '1',
b: '2'
}
var obj2 = {
c: '3',
d: '4'
}
I would like to merge them into something like this:
var obj = {
a: '1',
b: '2',
c: '3',
d: '4'
}
Any help would be greatly appreciated! Thanks!