Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(loop): for...in文についてのES2020の変更点を反映 #1194

Merged
merged 2 commits into from
Jun 28, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions source/basic/loop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ const filteredArray = array.filter((currentValue, index, array) => {

## for...in文 {#for-in-statement}

for...in文はオブジェクトのプロパティに対して、順不同で反復処理を行います。
for...in文はオブジェクトのプロパティに対して、反復処理を行います。[^1]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image


<!-- doctest:disable -->
```js
Expand Down Expand Up @@ -443,4 +443,5 @@ for文などの構文ではcontinue文やbreak文が利用できますが、配

[配列]: ../array/README.md
[関数とスコープ]: .../function-scope/README.md
[ブロックスコープ]: .../function-scope/README.md#block-scope
[ブロックスコープ]: .../function-scope/README.md#block-scope
[^1]: `for...in`文がプロパティを列挙する順番はES2019までは実装依存でしたが、ES2020で決められました。