Skip to content

Commit 80d51fe

Browse files
authored
Fix typo (els -> el)
1 parent f149c51 commit 80d51fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/rules/array-foreach.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ for (const el of els) {
9595
Use [`entries()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries) to get access to the index:
9696
```js
9797
for (const [i, el] of els.entries()) {
98-
els.name = `Element ${i}`
98+
el.name = `Element ${i}`
9999
}
100100
```
101101

0 commit comments

Comments
 (0)