function f(e){let n=!1,l=e.length;const r=[];return e.length?new Promise((o,u)=>{e.forEach((h,c)=>{h.catch(t=>(n=!0,t)).then(t=>{l-=1,r[c]=t,!(l>0)&&(n&&u(r),o(r))})})}):Promise.resolve([])}export{f as allPromiseFinish};
