Typescript Add Function In Arraylist Contains Object