Check out my JavaScript array below:
["name", "age", "gender"]
I am looking to transform it into this:
properties: [
{
key: "Name",
value: "name",
},
{
key: "Age",
value: "age",
},
{
key: "Gender",
value: "gender",
}
],
Can anyone guide me on how to structure the JavaScript array in the specified format above?