Skip to content

Unnecessary use of global variable #11

@Tymski

Description

@Tymski

for (j in controllers)
uses global "j" variable,
use const and a meaningful variable name
for (const property in controllers)
or
for (const controller in controllers)
whichever is more appropriate
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions