8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no-var
1 parent e51ffff commit a355a0eCopy full SHA for a355a0e
docs/src/rules/no-var.md
@@ -11,7 +11,7 @@ such as:
11
12
```js
13
var count = people.length;
14
-var enoughFood = count > sandwiches.length;
+var enoughFood = sandwiches.length >= count;
15
16
if (enoughFood) {
17
var count = sandwiches.length; // accidentally overriding the count variable
0 commit comments