Delete Item From Array Typescript Interview