I want to make a method with vuejs that loop through an array of object and give me all the names in that array, but i dont know how
the method will be something like this:
fruits =[
{name: "apple", calories: "50"},
{name: "apple", calories: "100"},
];
methode(){
var names = ''
foreach(fruit in this.fruits){
names = names+friut.name
}
return names
}