Typescript Remove Item From Array In Foreach