I have a nested array:
[["Area1",["location1", "location2", "location3"]],["Area2",["location4", "location5", "location6"]]]
How do I add an index to the locations in this array so that it will look like:
[["Area1",[["location1",1], ["location2",2], ["location3",3]]],["Area2",[["location4",4], ["location5",5], ["location6",6]]]]