0:24 There are immutable ways to do the same goal, like the map of function. Map iterates over the array and by using a callback function allow access to the items. Map creates a new array with the content return it by the cover function.
0:39 In this case, we use a conditional block to update only the item that have an ID equal to three. By using object of spread syntax, we update only the property name. In case that the conditional block is false, we return the original item.
1:00 Another way to update the content of one of the items by not knowing the index is by using the findIndex function. To avoid mutate the original array, we will use arrays slice function as our helper, findIndex allow us to use a test function. We'll return the index of the element that passed the test.