Skip to content

Commit 6be57b6

Browse files
use let instead of var in for loop.
1 parent b75d101 commit 6be57b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ A function which takes a function as an argument and/or returns a function.
6666
```js
6767
const filter = (pred, xs) => {
6868
const result = [];
69-
for (var idx = 0; idx < xs.length; idx++) {
69+
for (let idx = 0; idx < xs.length; idx++) {
7070
if (pred(xs[idx])) {
7171
result.push(xs[idx]);
7272
}

0 commit comments

Comments
 (0)