Skip to content

Commit 6256c79

Browse files
idfhemanth
authored andcommitted
fix #108 (#110)
1 parent eb4481c commit 6256c79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ console.log(arity); // 2
7676
A function which takes a function as an argument and/or returns a function.
7777

7878
```js
79-
const filter = (pred, xs) => {
79+
const filter = (predicate, xs) => {
8080
const result = [];
8181
for (let idx = 0; idx < xs.length; idx++) {
82-
if (pred(xs[idx])) {
82+
if (predicate(xs[idx])) {
8383
result.push(xs[idx]);
8484
}
8585
}

0 commit comments

Comments
 (0)