Casting to a different type each loop iteration
<p>I am looking for a way to cast items in a loop into a different type each iteration. Something like this:</p>

<pre><code>for (var i = 0; i &lt; 100; i++)
for (var j = 0; j &lt; 100; j++)
  newArr.push({
    date:arrA[i].subArr[j].myDate, 
    points+i:arrA[i].subArr[j].myPoints,
    league+i:arrA[i].subArr[j].myLeague
  });
</code></pre>

<p>Is such a thing possible?</p>
