I currently have an array in angular that I would like to change the structure of. Example array:
0: "Car 1"
1: "Car 2"
2: "Car 3"
3: "Car 4"
4: "Car 5"
5: "Car 6"
I would like to convert it to Car1,Car2,Car3,Car4,Car5
so that I can use the IndexOf()
function for each comma.