Populate array from an object array in javascript
<p>I've got the following object that's an object array (an array of objects), on a variable:</p>

<p>variable: myVar1</p>

<p>On fireBug I get the following lines when I call myVar1:</p>

<pre><code>[Object { myId= "1", myName= "Name1" }, Object { myId= "2", myName= "Name2" }, Object { myId= "3", myName= "Name3" }]
</code></pre>

<p>I need this data to be in the followng format stored on a variable too:</p>

<pre><code>myVar2 = [
[1, 'Name1'],
[2, 'Name2'],
[3, 'Name3']
]
</code></pre>

<p>I've tried so many things like the use of for loops and js functions but can't get it work.
I supose it's so easy. Anyone could try to explain the procedure.</p>

<p>Thank you</p>
