Is it possible to define a variable C to be a combination of 2 objects(let's say A and B), so that anything happens to A and B at any time in the future will happen to C. This means, C is declared before any change to A and B. For example:
var A = {};
var B = {};
var C = combine(A, B);
A.a=1;
B.b=2;
console.log(C);
// { a:1, b:2 }