expand an array of arrays to an array of objects : <p>I have an array of arrays and I need to make the first member in each nested array into a key, and make an array of objects from the rest. Where each odd member after the first is key and an even member is value.</p>

<p>See the example: note that the original nested arrays always have an odd number or members (or even after you remove the first member to make it our new key)  </p>

<pre><code>//ORIGINAL
    var arr = [
     [first, a, b, c, d],[second, e, f, g, h, i, j],[third,...]
    ]

// DESIRED RESULT
    var obj = [
     {first: [{a:b}, {c:d}]},
     {second: [{e:f}, {g:h}, {i:j}]},
     {third: ...}
    ]
</code></pre>
