1let linksArr = ['https://jsonplaceholder.typicode.com/posts', 'https://jsonplaceholder.typicode.com/comments'];
2
3axios.all(linksArr.map(l => axios.get(l)))
4 .then(axios.spread(function (...res) {
5 // all requests are now complete
6 console.log(res);
7 }));