Remove Element From Array Typescript Compiler