Why Use Arraylist Over Array Methods Javascript Map Function Get Index