title: How can I update a row in a javascript array based on a key value?
body: <p>I have an array of data like this:</p>
  
  <pre><code>var nameInfo  = [{name: "Moroni", age: 50},
                   {name: "Tiancum", age: 43},
                   {name: "Jacob", age: 27},
                   {name: "Nephi", age: 29},
                   {name: "Enos", age: 34}];
  </code></pre>
  
  <p>If I have an object like this:</p>
  
  <pre><code>var nameInfo  = {name: "Moroni", age: 51};
  </code></pre>
  
  <p>Is there a simple way that I can update the variable nameInfo. The key
  between these is the name column. I know there is a way that I could 
  do this by searching for the row, removing and adding but I would like
  to have a way to do this where I updated the row. Note that if it helps I do have underscore.js loaded.</p>