I am iterating over an object that has multiple key/value pairs and I\'d like to create an array of each time it iterates while updating specific values where the keys are found