Javascript – Adding a Promise to Promise.all() after they all finished
Assuming I have a function(){ .... return Promise.all([p1,p2]) } And I want to instead return a promise of p1, p2, p3, with p3 starting only after p1 and p2 are done. What would be the best way? Would the following…