I have information structured in the following way:
[
{
key: 'myKey'
value: 'myValue'
},
{
key: 'mySecondKey'
value: 'mySecondValue'
},
{
key: 'myThirdKey'
value: 'myThirdValue'
},
]
The number of objects can vary based on the values set for each account. I want to reformat this data to look like:
{
mykey: 'myValue'
mySecondKey: 'mySecondValue'
myThirdkey: 'myThirdValue'
}
Does anyone have suggestions on how I can achieve this conversion?