JavaScript - array of objects, etc
<p>Say I have the following:</p>

<pre><code>var a = '1',
    b = 'foo';
</code></pre>

<p>How do I create an object using the above variables such that my object looks like this:</p>

<pre><code>'1' =&gt; 'foo'
</code></pre>

<p>I'm trying to make this like an associative array. Furthermore, I want <code>1</code> to contain an array of objects. I have the variable that have the array of object; I just need to put it in <code>1</code>.</p>
