Axios spread() with unknown number of callback parameters
<p>I need to process an unknown number of AJAX requests (1 or more) with axios, and I am not sure how to handle the response. I want something along the lines of:</p>

<pre><code>let urlArray = [] // unknown # of urls (1 or more)

axios.all(urlArray)
.then(axios.spread(function () {
  let temp = [];
  for (let i = 0; i &lt; arguments[i].length; i++)
    temp.push(arguments[i].data);
}));
</code></pre>

<p>where arguments will contain the callback responses sent by axios. The problem is that <code>arguments</code> contains the given string urls instead of the actual responses. How can I resolve this problem?</p>