How would I go about running Axios in a for loop, each with a corresponding .then() function. Then after the for loop ends, run another function.
.then()
Exampl
If you are using a more recent version of javascript with async/await support, you can do the following:
async/await
const array = ['asdf', 'foo', 'bar']; let users = []; for (const id in array) { const response = await axios('/user/' + id); users.push(response); } console.log(users);