Please check my code first
I used axios.all (GET method).
.then((res) => {
let everyDataArray = [];
console.log(res); // output = [ {response}, {response} ]
for(let i=0; i < res.length; i++) {
everyDataArray.push(...res[i].response)
}
})
Right now, I'm using for loop for combining all the responses to an array.
However, What I'm trying to do is using forEach, not for.
I have checked https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach ,
but still working on how. Thank you.