diff --git a/readme.md b/readme.md index 08b0c74..cd3450f 100644 --- a/readme.md +++ b/readme.md @@ -76,10 +76,10 @@ console.log(arity); // 2 A function which takes a function as an argument and/or returns a function. ```js -const filter = (pred, xs) => { +const filter = (predicate, xs) => { const result = []; for (let idx = 0; idx < xs.length; idx++) { - if (pred(xs[idx])) { + if (predicate(xs[idx])) { result.push(xs[idx]); } }