Skip to content

Commit c6c25c9

Browse files
authored
Update article.md
"if arguments count" -> "if the arguments count" "allows to easily" -> "allows us to easily" "seen in the logging example:" -> "seen in the logging example," rephrasing rest of above sentence for readability
1 parent 7fb11bd commit c6c25c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/99-js-misc/03-currying-partials/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,6 @@ But most implementations of currying in JavaScript are advanced, as described: t
191191

192192
## Summary
193193

194-
*Currying* is a transform that makes `f(a,b,c)` callable as `f(a)(b)(c)`. JavaScript implementations usually both keep the function callable normally and return the partial if arguments count is not enough.
194+
*Currying* is a transform that makes `f(a,b,c)` callable as `f(a)(b)(c)`. JavaScript implementations usually both keep the function callable normally and return the partial if the arguments count is not enough.
195195

196-
Currying allows to easily get partials. As we've seen in the logging example: the universal function `log(date, importance, message)` after currying gives us partials when called with one argument like `log(date)` or two arguments `log(date, importance)`.
196+
Currying allows us to easily get partials. As we've seen in the logging example, after currying the three argument universal function `log(date, importance, message)` gives us partials when called with one argument (like `log(date)`) or two arguments (like `log(date, importance)`).

0 commit comments

Comments
 (0)