title: _.map overwriting value upon return
body: <p>I've been noticing some strange behaviour when using <code>lodash</code> <code>_.ma</code> function. (That or I'm blatantly overlooking something)</p>
  
  <p>I have the following:</p>
  
  <pre><code>_this.searches = _.map(body.rows, function(row) {
      var tmpSearch = new Search(row.value);
      console.log(tmpSearch.search['name']);
      return tmpSearch.search;
  });
  </code></pre>
  
  <p><code>Search</code> is just a standard javascript object with some prototype functions.</p>
  
  <p>However, when I inspect <code>_this.searches</code>, every object is the same, I tried to loop through it to get a better result:</p>
  
  <pre><code>_.forEach(_this.searches, function(search) {
      console.log(search['name']);
  })
  </code></pre>
  
  <p>The <code>console.log</code> for the <code>_.map</code> is this:</p>
  
  <pre><code>2015-04-03T14:14:29+0800 &lt;log&gt; searches.js:35 () test
  2015-04-03T14:14:29+0800 &lt;log&gt; searches.js:35 () Test 2
  2015-04-03T14:14:29+0800 &lt;log&gt; searches.js:35 () Testing search
  </code></pre>
  
  <p>The <code>console.log</code> for the <code>_.forEach</code> is this:</p>
  
  <pre><code>2015-04-03T14:14:29+0800 &lt;log&gt; searches.js:42 () Testing search
  2015-04-03T14:14:29+0800 &lt;log&gt; searches.js:42 () Testing search
  2015-04-03T14:14:29+0800 &lt;log&gt; searches.js:42 () Testing search
  </code></pre>
  
  <p>The <code>Search</code> can be found here: <a href="http://pastebin.com/4y6taGUr" rel="nofollow">http://pastebin.com/4y6taGUr</a>
  Although there's nothing special going on.</p>