Change objects attribute names on runtime
<p>Suppose I have an array of objects like this:</p>

<pre><code> var nodes = [{"size":8,"name":"myName"},{"size":10,"name":"otherName"},{"size":11,"name":"userName"}];
</code></pre>

<p>How do I create an array <code>arr</code> that contains objects mapped from <code>nodes</code> but that the attributes have different names. Say I want that <code>arr.r</code> be mapped to each <code>size</code> attribute, so:</p>

<pre><code>thisSize = arr[0].r
</code></pre>

<p>should assing <code>8</code> to <code>thisSize</code>.
Hope I explained my question clearly.</p>
