title: change the value of object inside a list
body: <p>My code's output is like this:</p>
  <pre><code>let myArray = [{&quot;num&quot;: &quot;2&quot;, &quot;name&quot;: &quot;Jhon&quot;}, {&quot;num&quot;: &quot;1&quot;, &quot;name&quot;: &quot;Sara&quot;}, {&quot;num&quot;: &quot;2&quot;, &quot;name&quot;: &quot;Domnic&quot;}, {&quot;num&quot;: &quot;3&quot;, &quot;name&quot;: &quot;Bravo&quot;}]
  </code></pre>
  <p>How can I access value of <code>num</code> in each field of the list and if <code>num: 2</code>, change its value to <code>5</code>?</p>