Rule: no-for-in

Ban the usage of for…in statements.

Rationale

for…in statements are legacy JavaScript syntax which usually require a verbose hasOwnProperty check inside their loop body. These statements can be fully replaced with for…of statements in modern JS & TS.

Config

Not configurable.

Config examples
"no-for-in": true
Schema
null