how can i convert elements in array as objects in array?
"allowed_vehicle_types": [
"A1",
"A2",
"A",
"B1",
]
How can I get this array into this shape? this is what i want
[
{ value: 'A1', label: 'A1' },
{ value: 'A2', label: 'A2' },
{ value: 'A', label: 'A' },
{ value: 'B1', label: 'B1' },
]