I realize the title of my question may seem odd, but I wasn't sure how else to phrase it.
I am dealing with two sets of data
a = [1,2,3]
And
b = ["gf","gdf","gdf"]
Currently, my return statement looks like this:
return {
options: a.map(value => ({ label: value, value: value }))
};
But I actually want the values inside the options to come from the b
array instead of the a
array. How can I achieve this?