Typescript Remove Item From Array While Iterating Hashmap