I have a response like below from an API call,
Now, I have to repeat the whole arrays inside the arrays. How do I do that in VueJS?
I have searched for using forEach.. nowhere I found forEach usage like key|value pair.
Can anyone help me on how to fetch the values from that arrays by using either forEach or any else(VueJS)?
Thanks & Regards,
This question is related to
javascript
arrays
foreach
vuejs2
vue.js
You can also use .map() as:
var list=[];
response.data.message.map(function(value, key) {
list.push(value);
});