How to create an array of objects from multiple arrays
<p>Given the following arrays:</p>

<pre><code>var ids = [1,2,3]; //Hundreds of elements here
var names = ["john","doe","foo"]; //Hundreds of elements here
var countries = ["AU","USA,"USA"]; //Hundreds of elements here
</code></pre>

<p>What's the best way performance-wise to generate an array of objects with a similar structure to this:</p>

<pre><code>var items = [
    {id:1,name:"john",country:"AU"},
    {id:2,name:"doe",country:"USA"},
    ...
];
</code></pre>