Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)

 
PREVIOUS NEXT
Tagged: #map #arrays #vuejs
ADD COMMENT
Topic
Name
4+2 =