title: Axios.get().then() in a for loop
body: <p>How would I go about running Axios in a for loop, each with a corresponding <code>.then()</code> function. Then after the for loop ends, run another function.</p>
  
  <p>Example:</p>
  
  <pre><code>const array = ['asdf', 'foo', 'bar'];
  let users = [];
  for (i = 0; i &lt; array.length; i++) {
    axios.get('/user/' + array[i].id).then(response =&gt; {
      // do something with response
      users.push(response);
    });
  }
  
  console.log(users);
  </code></pre>