Condensing a Javascript array
<p>I have a javascript array (from a <a href="http://pipes.yahoo.com/pipes/pipe.info?_id=dc16e694967418792beaa97d7bf1999a" rel="nofollow">yahoo pipe via JSONP</a>) in which I have a sub-array called 'moby'.</p>

<p>I'd like to change the current structure:</p>

<pre><code>value {
  callback =&gt; blah,
  generator =&gt; blah,
  items {
    0 {
      author =&gt; blah,
      category =&gt; blah,
      moby {
        day_no =&gt; 168,
        more =&gt; Keep_this_stuff
    },
    1 {
      author =&gt; blah,
      category =&gt; blah,
      moby {
        day_no =&gt; 167,
        more =&gt; Keep_this_stuff
    },... etc
  }
}
</code></pre>

<p>Into a more sparse object that looks something like this:</p>

<pre><code>moby {
  168 {
    day_no =&gt; 168,
    more =&gt; Keep_this_stuff
  },
  167 {
    day_no =&gt; 167,
    more =&gt; Keep_this_stuff
  },... etc
}
</code></pre>

<p>I know how I'd do it in ruby (with the funky <code>Array.collect</code>) but I have no idea in Javascript! Any clues? (I have jQuery loaded in the page I'll be using this on)</p>
