vue iterate over map code example
Example 1: use map to loop through an array
let squares = [1,2,3,4].map(function (val) {
return val * val;
});
// squares will be equal to [1, 4, 9, 16]
Example 2: how to map over arrays vuejs
this.allCampaigns = response.data.data.campaigns.map(campaigns => ( campaigns.name))
map over array to access item (eg. just the campaign name)