Thank you. I understand now. Using arr that you defined it works great. arr needs to be dynamic, however, so I tried to define by getting an object out of local storage and instead of returning an updated object, it just returns what is in the screenshot.
My object in storage looks the same as yours that you hard-coded in so I'm not sure what the issue is.