From 59af19858d516e5d31f5e64b545a74e4c63f1436 Mon Sep 17 00:00:00 2001 From: Tzur Ziv <32754747+Tzurz@users.noreply.github.com> Date: Sun, 17 Jan 2021 13:38:34 +0200 Subject: [PATCH] Update README.md FIxed small mistake in the `Context` section (parameter order in example `filter` function). --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5521fbb8..e3529bbb 100644 --- a/README.md +++ b/README.md @@ -252,7 +252,7 @@ A function is often an action on _something_. It is important to state what is i ```js /* A pure function operating with primitives */ -function filter(predicate, list) { +function filter(list, predicate) { return list.filter(predicate) }