My aim is to combine 2 similar JSON objects so that the output will have its value taken from the json objects supplied. For eg:
var obj1 = {'name': 'xyz', 'age':''}, obj2 = {'name':'', 'age':'66'}
//would like to have some functionality like below that gives me the output
obj3 = combine(obj1,obj2)
//desired output below.
obj3 = {'name': 'xyz', 'age':'66'}