title: JavaScript - merge two arrays of objects and de-duplicate based on property value
body: <p>I want to <strong>update</strong> (replace) the objects in my array with the objects in another array. Each object has the same structure. e.g.</p>
  
  <pre><code>var origArr = [
    {name: 'Trump', isRunning: true},
    {name: 'Cruz', isRunning: true},
    {name: 'Kasich', isRunning: true}
  ];
  var updatingArr = [
    {name: 'Cruz', isRunning: false},
    {name: 'Kasich', isRunning: false}
  ];
  // desired result:
  NEWArr = [
    {name: 'Trump', isRunning: true},
    {name: 'Cruz', isRunning: false},
    {name: 'Kasich', isRunning: false}
  ];
  </code></pre>
  
  <p>I've tried concat() &amp; Underscore's <code>_.uniq</code> function, but it always dumps the newer object &amp; returns, essentially, the original array.</p>
  
  <p>Is there a way to overwrite (replace) <code>origArr</code> with the objects in <code>updatingArr</code> -- matching on the <code>name</code> property?</p>