Skip to content

Commit eb43d82

Browse files
authored
Merge pull request #914 from misterabd/patch-1
Update article.md
2 parents e73bbce + effc64a commit eb43d82

File tree

1 file changed

+2
-2
lines changed
  • 1-js/06-advanced-functions/11-currying-partials

1 file changed

+2
-2
lines changed

1-js/06-advanced-functions/11-currying-partials/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ alert( triple(5) ); // = mul(3, 5) = 15
6565

6666
Why do we usually make a partial function?
6767

68-
Here our benefit is that we created an independent function with a readable name (`double`, `triple`). We can use it and don't write the first argument of every time, cause it's fixed with `bind`.
68+
The benefit is that we can create an independent function with a readable name (`double`, `triple`). We can use it and not provide first argument of every time as it's fixed with `bind`.
6969

70-
In other cases, partial application is useful when we have a very generic function, and want a less universal variant of it for convenience.
70+
In other cases, partial application is useful when we have a very generic function and want a less universal variant of it for convenience.
7171

7272
For instance, we have a function `send(from, to, text)`. Then, inside a `user` object we may want to use a partial variant of it: `sendTo(to, text)` that sends from the current user.
7373

0 commit comments

Comments
 (0)