Skip to content

Commit

Permalink
Fix typo (els -> el)
Browse files Browse the repository at this point in the history
  • Loading branch information
iansan5653 committed Apr 28, 2022
1 parent f149c51 commit 80d51fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/array-foreach.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ for (const el of els) {
Use [`entries()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries) to get access to the index:
```js
for (const [i, el] of els.entries()) {
els.name = `Element ${i}`
el.name = `Element ${i}`
}
```

Expand Down

0 comments on commit 80d51fe

Please sign in to comment.