Promise.all khud likho

promiseAll(items) likho jo Promise.all jaisa kaam kare: sab poore hon to results usi order mein do jisme items the, chahe koi pehle khatam ho, koi ek fail ho to turant usi error ke saath reject, khaali array → [], items mein normal values bhi ho sakti hain (promise nahi).