I've got some query parameters
Exterior Color=Red,Interior Color=Mahogany
that I ultimately want to convert in to this array
[
{
Question: "Exterior Color",
Answer: "Red"
},
{
Question: "Interior Color",
Answer: "Mahogany"
},
]
I've gotten as far as this
[
"Exterior Color=Red",
"Interior Color=Mahogany"
]
With
let optionsArray = itemOptions.split(',').filter(Boolean);
But have hit a brick wall on next steps.