could you please tell me how to convert an array which is
["apple","banana", "mango"]
to
[{fruit:"apple"},{fruit:"banana"},{fruit:"mango}]
with the parenthesis
something similar to this but with parenthesis JavaScript Add key to each value in array