How does axios handle such situations concurrently?

function ajax(data){}

let allAjax = []

for(let i = 0;i<data.length;iPP)
    allAjax.push(ajax(data[i]))
    

axios.all(allAjax).then(axios.spread(function (acct, perms) {})

is that the number of my requests is the length of the array, but how many of the array are added by the user? I don"t know how I put these requests in the array and pass them to all?

.
Mar.28,2021

function ajax(data){
    return axios.
}
axios.all(data.map((v, i)=>ajax(v))).then...
Menu