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

Guarding for-in loop from unexpected items #283

Closed
wants to merge 1 commit into from

Conversation

travnels
Copy link
Contributor

@travnels travnels commented Nov 3, 2016

Identified by running eslint on project

Per http://eslint.org/docs/rules/guard-for-in

Looping over objects with a for in loop will include properties that
are inherited through the prototype chain. This behavior can lead to
unexpected items in your for loop.

Per http://eslint.org/docs/rules/guard-for-in

Looping over objects with a for in loop will include properties that
are inherited through the prototype chain. This behavior can lead to
unexpected items in your for loop.
@coveralls
Copy link

coveralls commented Nov 3, 2016

Coverage Status

Coverage increased (+0.004%) to 97.912% when pulling c797269 on travnels:guard-for-in into 11d89da on mashpie:master.

@travnels travnels closed this Nov 3, 2016
@travnels
Copy link
Contributor Author

travnels commented Nov 3, 2016

Included this fix as part of #282

@travnels travnels deleted the guard-for-in branch November 17, 2016 23:28
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.

2 participants