title: Is there a JS design pattern to combine N objects into 1 façade object and have code editors know which methods it has?
body: <p>for example suppose I have:</p>
  <pre><code>var obj_a = {
    foo: function() {}
  }
  
  var obj_b = {
    bar: function() {}
  }
  </code></pre>
  <p>How should I declare <code>obj_c</code> to have both methods so that typing <code>obj_c.</code> would popup <code>foo</code> and <code>bar</code> as valid autocomplete options?</p>