Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix Promise.allSettled polyfill#1944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
TravellerOnline wants to merge1 commit intojavascript-tutorial:master
base:master
Choose a base branch
Loading
fromTravellerOnline:patch-1

Conversation

TravellerOnline
Copy link

Описание

функция Promise.allSettled принимает итерируемый объект (не обязательно массив) как параметр, но в теле функции в учебнике используется метод map на этом итерируемом объекте, что даст ошибку, если там не массив. Поэтому логичнее обернуть сначала этот объект в Array.from(), и затем использовать метод массива map

@javascript-translate-botjavascript-translate-bot added the review neededReview needed, please approve or request changes labelMar 27, 2024
@javascript-translate-botjavascript-translate-bot requested a review froma teamMarch 27, 2024 21:07
@CLAassistant
Copy link

CLAassistant commentedMar 27, 2024
edited
Loading

CLA assistant check
All committers have signed the CLA.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
review neededReview needed, please approve or request changes
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@TravellerOnline@CLAassistant@javascript-translate-bot

[8]ページ先頭

©2009-2025 Movatter.jp