From f426fd6113f786391b291f6d709239e7ca724443 Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Wed, 31 Jan 2018 13:21:23 +0100 Subject: [PATCH 1/3] Wording --- 1-js/06-advanced-functions/11-currying-partials/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/06-advanced-functions/11-currying-partials/article.md b/1-js/06-advanced-functions/11-currying-partials/article.md index 6e7b78e8..9484bf69 100644 --- a/1-js/06-advanced-functions/11-currying-partials/article.md +++ b/1-js/06-advanced-functions/11-currying-partials/article.md @@ -5,7 +5,7 @@ libs: # Currying and partials -Till now we were only talking about binding `this`. Now let's make a step further. +Until now we have only been talking about binding `this`. Let's take it a step further. We can bind not only `this`, but also arguments. That's rarely done, but sometimes can be handy. From 48d233c3057d1aafeb617e2618ede03897f8b735 Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Wed, 31 Jan 2018 13:21:43 +0100 Subject: [PATCH 2/3] Typo --- 1-js/06-advanced-functions/11-currying-partials/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/06-advanced-functions/11-currying-partials/article.md b/1-js/06-advanced-functions/11-currying-partials/article.md index 9484bf69..e209b5fd 100644 --- a/1-js/06-advanced-functions/11-currying-partials/article.md +++ b/1-js/06-advanced-functions/11-currying-partials/article.md @@ -148,7 +148,7 @@ More advanced implementations of currying like [_.curry](https://lodash.com/docs ```js function curry(f) { - return function(..args) { + return function(...args) { // if args.length == f.length (as many arguments as f has), // then pass the call to f // otherwise return a partial function that fixes args as first arguments From 7bad527554ac346370851e87fbe96a8215b5eb40 Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Thu, 1 Feb 2018 07:12:01 +0100 Subject: [PATCH 3/3] Typo --- .../11-currying-partials/1-ask-currying/task.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/06-advanced-functions/11-currying-partials/1-ask-currying/task.md b/1-js/06-advanced-functions/11-currying-partials/1-ask-currying/task.md index 915d8aee..f8b83d7a 100644 --- a/1-js/06-advanced-functions/11-currying-partials/1-ask-currying/task.md +++ b/1-js/06-advanced-functions/11-currying-partials/1-ask-currying/task.md @@ -8,7 +8,7 @@ The task is a little more complex variant of . The `user` object was modified. Now instead of two functions `loginOk/loginFail`, it has a single function `user.login(true/false)`. -What to pass `askPassword` in the code below, so that it calls `user.login(true)` as `ok` and `user.login(fail)` as `fail`? +What to pass `askPassword` in the code below, so that it calls `user.login(true)` as `ok` and `user.login(false)` as `fail`? ```js function askPassword(ok, fail) {