I recently used a vue.js library that has a specific requirement for arrays in this exact format
autocompleteItems: [
{
text: "Python"
},
{
text: "HTML"
},
{
text: "CSS"
},
{
text: "React"
},
{
text: "Node.js"
}
],
However, I now need to populate this array with items from another array. How can I transform my existing "normal" array into the required format?