title: Iterate over array of objects and replace a value with value from an array
body: <p>I have an array of objects like this:</p>
  
  <pre><code>[{_colorIndex: 0,name: "ATV Sport"},{_colorIndex: 1,name: "Sport"}]
  </code></pre>
  
  <p>Id like to loop through that array and replace each _colorIndex value with a value from an array of colors in order.
  Array:</p>
  
  <pre><code>["#0E5B7E", "#A871A8"]
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>[{_colorIndex: "#0E5B7E",name: "ATV Sport"},{_colorIndex: "#A871A8",name: "Sport"}]
  </code></pre>
  
  <p>What would be the best way to do this? </p>