[javascript] How to use forEach in vueJs?

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

The answer is

You can also use .map() as:

var list=[];

response.data.message.map(function(value, key) {

Similar questions with javascript tag:

Similar questions with arrays tag:

Similar questions with foreach tag:

Similar questions with vuejs2 tag:

Similar questions with vue.js tag: