Why Use Arraylist Over Array Methods In Typescript