// ... some code
const array1 = ['url_1', 'url_2', 'url_3'];
const map1 = array1.map(x => {
axios.get(x)
.then(function (response) {
// ... some code
})
});
// ... some code
would we be able to utilize any strategy to callback always after a fully completed loop?
The main problem here is that the code after the loop runs before it is completed.