title: How to add object value dynamically in array of objects
body: <p>Here is my array of object:</p>
  <pre><code>let a = [
      {&quot;team_id&quot;: 14, &quot;name&quot;: &quot;Aus&quot;},
      {&quot;team_id&quot;:39,&quot;name&quot;: &quot;New&quot;},
      {&quot;team_id&quot;: 44, &quot;name&quot;: &quot;Ind&quot;,}
  ]
  
  let b = [{&quot;team_id&quot;:39,&quot;name&quot;: &quot;New&quot;}]
  </code></pre>
  <p>I want to find array of object <code>b</code> value and add new key value to that object <code>&quot;selected&quot;:true</code> I want output like this:</p>
  <pre><code>let c = [
      {&quot;team_id&quot;: 14, &quot;name&quot;: &quot;Aus&quot;},
      {&quot;team_id&quot;:39,&quot;name&quot;: &quot;New&quot;,&quot;selected&quot;:true},
      {&quot;team_id&quot;: 44, &quot;name&quot;: &quot;Ind&quot;,}
  ] 
  </code></pre>