0

I have an array like this:

data=[
  {
    test1:{a: ""}
  },
  {
    test2: {a: ""}
  }
]

How can I convert it to this:

data=[
  {
    test1:{a: ""},
    test2:{a: ""}
  }
]

Thanks.

cabita
  • 832
  • 2
  • 12
  • 36

0 Answers0