I know this has been asked before, but every solution I found isn't doing it the way I need it.
The Array
[ {key: "Title", value: "Default Text"}, {key: "Title2", value: "Default Text2"} ]
Object I Need
{
"Title": "Default Text",
"Title2": "Default Text2"
}
Everything I try seems to return this which is wrong:
{ {key: "Title", value: "Default Text"}, {key: "Title2", value: "Default Text2"} }
I've tried most things I found here on SO.. the last one I've tried that is formatting it wrong is:
let obj = Object.assign({}, arrayHere);
What I want:
What I keep getting, but is wrong: