I am trying to convert a nested array to an object, I made several attempts but without success.
these are the data i have
[
  ['key1', { childKey1: "text" }, { childKey2: "text" }],
  ['key2', { childKey1: "text" }, { childKey2: "text" }]
]
this is the data i need
{
  key1: {
    childKey1: "text",
    childKey2: "text"
  },
  key2: {
    childKey1: "text",
    childKey2: "text"
  }
}
 
     
     
     
     
    