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 => ({
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: