eslint-plugin

@masknet/no-for-in

Disallow use for-in

Rule Details

:x: Incorrect

for (const key in object) {
}

:white_check_mark: Correct

for (const key of Object.keys(object)) {
}

Attributes