axios get array of urls code example
Example: axios get array of urls
let linksArr = ['https://jsonplaceholder.typicode.com/posts', 'https://jsonplaceholder.typicode.com/comments'];
axios.all(linksArr.map(l => axios.get(l)))
.then(axios.spread(function (...res) {
// all requests are now complete
console.log(res);
}));