OneCompiler

promise.all polyfilll with recursive

122

promise.all polyfilll with recursive

const arr =["url1", "url2","url3","url4"]


async function promiceAll(j=0){
  
  if(j < arr.length){
    const data = await fetch(`https://www.abibliadigital.com.br/api/verses/nvi/sl/${j}`);
    console.log("*****",data)
    apicall(j + 1)
  }
  //j =+1;
  
}
apicall()