var a = {a: 1}; var b = {b: 1}; var d = new Proxy({}, { get: function(target, name){ return target[name] || a[name] || b[name]; } }); alert(d.a); alert(d.b);