From bd79998d01012b0ff333e512b1a984f8602a7178 Mon Sep 17 00:00:00 2001 From: Alon Valadji Date: Thu, 25 Feb 2021 00:30:28 +0200 Subject: [PATCH] reverse arguments --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b3874a8..319f199 100644 --- a/README.md +++ b/README.md @@ -269,7 +269,7 @@ A function is often an action on _something_. It is important to state what its ```js /* A pure function operating with primitives */ -function filter(predicate, list) { +function filter(list, predicate) { return list.filter(predicate) }