I have data that looks like this.
[
  {
    key: 'myKey'
    value: 'myValue'
  },
  {
    key: 'mySecondKey'
    value: 'mySecondValue'
  },
  {
    key: 'myThirdKey'
    value: 'myThirdValue'
  },
]
The amount of objects varies depending on how much values an account has set. I'm trying to return this in a format that looks like this
{
  mykey: 'myValue'
  mySecondKey: 'mySecondValue'
  myThirdkey: 'myThirdValue'
}
Any advice on how I would go about doing this?
 
     
    