We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 46bdbde + d559322 commit 7f88e6fCopy full SHA for 7f88e6f
1 file changed
1-js/06-advanced-functions/11-currying-partials/article.md
@@ -234,13 +234,13 @@ function sum(a, b, c) {
234
let curriedSum = curry(sum);
235
236
// still callable normally
237
-alert( curried(1, 2, 3) ); // 6
+alert( curriedSum(1, 2, 3) ); // 6
238
239
// get the partial with curried(1) and call it with 2 other arguments
240
-alert( curried(1)(2,3) ); // 6
+alert( curriedSum(1)(2,3) ); // 6
241
242
// full curried form
243
-alert( curried(1)(2)(3) ); // 6
+alert( curriedSum(1)(2)(3) ); // 6
244
```
245
246
The new `curry` may look complicated, but it's actually pretty easy to understand.
0 commit comments