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

feat(loop): for...in文について #92

Merged
merged 9 commits into from
Jul 20, 2016
Merged

feat(loop): for...in文について #92

merged 9 commits into from
Jul 20, 2016

Conversation

azu
Copy link
Collaborator

@azu azu commented Jul 18, 2016

  • for...in文
  • for...in文とオブジェクト
  • for...in文と配列
  • for..in文の代替としての Object.keys()

refs #68

オブジェクトに対する反復処理を行うのにfor...in文は有用に見えますが、
多くの問題を持っているため、使うことを避けたほうがよいでしょう。

for...in文は配列オブジェクトに対しても利用できます。
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ここ、文で説明しすぎて散文になってる。

コードでは、意図しない結果してる状態
文章では、なぜ意図しない結果になるのかを説明した方がよさそう

@azu azu merged commit 8dbf6e9 into master Jul 20, 2016
@azu azu deleted the for-in branch July 20, 2016 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant