Typescript Add Function In Arraylist Length