Remove Value From Array Typescript Version Check