To convert the object into arrays based on the number of keys present inside the JSON object using JS.
the actual Object
values: [
{
Label: "label1",
Value: "10",
},
{
Label: "label2",
Value: "11",
},
{
Label: "label3",
Value: "12",
},
],
};
And I want the actual output to be something like this
label:['label1','label2','label3']
value:['10','11','12']
Using javascript or in react. Thanks in advance