```
0:{region: "1", id: "1P1", P1: "7", quantity: 12, multiSum: 84, …}
1:{region: "1", id: "1P2", P2: "7", quantity: 25, multiSum: 175, …}
2:{region: "1", id: "1P3", P3: "7", quantity: 44, multiSum: 308, …}
3:{region: "1", id: "1P4", P4: "7", quantity: 66, multiSum: 462, …}
4:{region: "1", id: "1P5", P5: "7", quantity: 99, multiSum: 693, …}
5:{region: "1", id: "1P6", P6: "7", quantity: 9, multiSum: 63, …}
6:{region: "3", id: "3P1", P1: "8", quantity: 102, multiSum: 816, …}
7:{region: "3", id: "3P2", P2: "8", quantity: 212, multiSum: 1696, …}
8:{region: "3", id: "3P3", P3: "7", quantity: 244, multiSum: 1708, …}
9:{region: "3", id: "3P4", P4: "6", quantity: 964, multiSum: 5784, …}
10:{region: "3", id: "3P5", P5: "4", quantity: 894, multiSum: 3576, …}
11:{region: "3", id: "3P6", P6: "1", quantity: 904, multiSum: 904, …}

```

Hey there, I am having trouble structuring this data. What I would like to do is to loop through the data and create an object[region] with all data that belongs to that region. 

To visualize:

```
    ["1": {P1: 7, P2: 7: P3: 7,..., quantity1: 12, quantity2: 25,...},
"3": {P1: 8, P2: 8: P3: 7,..., quantity1: 102, quantity2: 212,...}]

```

This is data from userInputs, hence the repetition. I would appreciate any help.

Thanks!