Typescript Remove Item From Array Javascript