title: Underscore.js object-object mapper?
body: <p>Is there an Underscore.js function that can map one object to another object, based on the other object's properties?</p>
  
  <p>(Kind of how <a href="https://github.com/AutoMapper/AutoMapper" rel="noreferrer">AutoMapper</a> works in .NET.)</p>
  
  <p>For example:</p>
  
  <pre><code>var objectA = { 'name': 'Jonathan', 'city': 'Sydney' };
  var objectB = { 'name': 'Jonathan Conway', 'city': 'Sydney', 'errors': [] }
  
  _.mapperMethod(objectB);
  
  =&gt; { 'name': 'Jonathan Conway', 'city': 'Sydney' };
  </code></pre>