Assign regular javascript array to array of objects
<p>I have 3 regular arrays in javascript</p>

<blockquote>
  <p>1st array : ids[] (contains list of ids)<br> 2nd array : country[]
  (contains list of names of countries)<br> 3rd array : codes[] (contains
  list of codes of countries)</p>
</blockquote>

<p>I need to create an object array say 'comb' from these three arrays having keys as "id", "name" and "code" and the respective values from the 3 arrays.</p>

<p>Eg:
This is what i want from the regular arrays</p>

<pre><code>var comb = [
{id:1, name:'United States',code:'US'},
{id:2, name:'China',code:'CH'}
];
</code></pre>

<p>Can anyone please tell me how to achieve this</p>
