1.0.0 • Published 9 years ago

eslint-rule-no-for-in v1.0.0

Weekly downloads
-
License
MPL-2.0
Repository
-
Last release
9 years ago

no-for-in

The javascript for-in loop is not great. Now that there's a for-of loop, which behaves like the for-in loop of other languages, it's easy to confuse the two and unintentionally use for-in when for-of is meant. This eslint rule is designed to make unintentional use of for-in impossible. If a for-in loop truly is required, the rule should be disabled on a per-line basis.