From 6f4e3912ef6bfd13c7a2520e5cb07df4b94fbc8d Mon Sep 17 00:00:00 2001 From: TravellerOnline <67200353+TravellerOnline@users.noreply.github.com> Date: Wed, 27 Mar 2024 21:54:57 +0100 Subject: [PATCH] Update article.md --- 1-js/11-async/05-promise-api/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/11-async/05-promise-api/article.md b/1-js/11-async/05-promise-api/article.md index d50fc9ed44..23354fffeb 100644 --- a/1-js/11-async/05-promise-api/article.md +++ b/1-js/11-async/05-promise-api/article.md @@ -186,7 +186,7 @@ Promise.allSettled(urls.map(url => fetch(url))) ```js if(!Promise.allSettled) { Promise.allSettled = function(promises) { - return Promise.all(promises.map(p => Promise.resolve(p).then(value => ({ + return Promise.all(Array.from(promises).map(p => Promise.resolve(p).then(value => ({ status: 'fulfilled', value: value }), error => ({