I'm having a really difficult time understanding how to iterate over an object or an array of object. I understand how you can use for loops to iterate over arrays. I just don't understand it here. I don't understand how I can use a function to iterate over an object and see if one of the parameters match. And then change a value based on that.
What I have tried:
I don't really know how to target it. I've tried to set up for loop to go through the list of objects to see if there is a match and update the key value if there is. Just not working.