title: best way to replace the first occurrence of an item in an array
body: <p>Is this the best way to replace the first occurrence of something?</p>
  
  <pre><code>my_list[my_list.indexOf(old_item)] = new_item
  </code></pre>
  
  <p>Note: If the item is not in the array, I don't want anything to happen. (No errors / broken array)</p>