Can the front-end javascript determine whether the superimposed data is empty after the four concurrent requests are completed?

can the front-end javascript determine whether the superimposed data is empty after all four concurrent requests are completed? If you can, you can provide an idea or an example. If there is no such technology at the front end, please let me know. Thank you

.
Dec.19,2021

Promise.all ?


can you: can you

take three as an example, there are many ways:

1. Said upstairs Promise.all

Promise.allSettled([promise1,promise2,promise3,promise4]).then(res=>{
    if(res.status === 'fulfilled'){
       //      
    }else{
     //      
    }
})
Menu