Why Use Arraylist Over Array Methods Javascript Map Functions