From 393ffa3748abe65a5f91db7374bc428e5fc2ae92 Mon Sep 17 00:00:00 2001 From: anmolbansal08 <37624937+anmolbansal08@users.noreply.github.com> Date: Sun, 1 Dec 2024 11:32:42 +0530 Subject: [PATCH] Update article.md Corrected the sentence --- 1-js/99-js-misc/03-currying-partials/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/99-js-misc/03-currying-partials/article.md b/1-js/99-js-misc/03-currying-partials/article.md index d71ac23f87..289284ae54 100644 --- a/1-js/99-js-misc/03-currying-partials/article.md +++ b/1-js/99-js-misc/03-currying-partials/article.md @@ -183,6 +183,6 @@ But most implementations of currying in JavaScript are advanced, as described: t ## Summary -*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. +*Currying* is a transform that makes `f(a,b,c)` callable as `f(a)(b)(c)`. JavaScript implementations usually keep both the function callable normally and return the partial if the arguments count is not enough. 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)`).