title: object transformation with underscore.js
body: <p>For whatever reason, I have quite a bit of difficulty when trying to transform objects and arrays.</p>
  
  <p>The current data I have is stored in a mongodb collection and looks like this:</p>
  
  <pre><code>[{ "_id" : 1, "name" : "someName", "colorName" : "Pink"},
  { "_id" : 2, "name" : "someName2", "colorName" : "RoyalBlue"},
  { "_id" : 3, "name" : "aThirdOne", "colorName" : "Gold"},
  { "_id" : 4, "name" : "oneMore", "colorName" : "LightGreen"}]
  </code></pre>
  
  <p>I need to get <em>either</em> the following two arrays, but would like to know how to get both.</p>
  
  <pre><code>[{ "value" : 1, "label" : "someName"},
  { "value" : 2, "label" : "someName2"},
  { "value" : 3, "label" : "aThirdOne"},
  { "value" : 4, "label" : "oneMore"]
  
  [{1 : "someName"},
  {2 : "someName2"},
  {3 : "aThirdOne"},
  {4 : "oneMore"}]
  </code></pre>
  
  <p>I know it is probably something with <code>_.map</code>, but I am not sure why I can't figure it out.  Please advise.</p>