title: JavaScript/React - Update a value in array with particular key name from a array of arrays
body: <p>In the below array of arrays I need to update the <strong>id</strong> value for a particular <strong>name</strong>.</p>
  
  <pre><code>objArray = [{ name: John, id: 12}, { name: Jake, id: 45}, { name: Jacob, id: 78}];
  </code></pre>
  
  <p>Ex: If user enters a name and id in text boxes and clicks submit I want to update the id in the array for the particular name.</p>
  
  <p>I can accomplish this using for loops but can you please let me know the most efficient way to do this in Java Script/React? </p>