I have an Array with some Elements:
ArrayE = ["Car", "Bike", "Bus", "Truck"]
I have to make an array like this:
ArrayX = [
{ value: "Car", label: "Car" },
{ value: "Bike", label: "Bike" },
{ value: "Bus", label: "Bus" },
{ value: "Truck", label: "Truck" }
];
How can I convert the first Array to the second one?