Typescript Add Function In Arraylist Remove