I know that my question's title looks weird but I didn't know how to ask such a question.
I have two arrays
a = [1,2,3]
And
b = ["gf","gdf","gdf"]
I have a return statement like this:
return {
options: a.map(value => ({ label: value, value: value }))
};
But I want the value inside options to take the values of the b array not of the a array. How to do this?