Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9cdff04

Browse files
committed
Fix currying
1 parent 144a0d0 commit 9cdff04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

function-patterns/currying.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@
7474
if (typeof oldy === "undefined") { // partial
7575
return function (newy) {
7676
return oldx + newy;
77-
}
78-
// full application
79-
return x + y;
77+
}
8078
}
79+
// full application
80+
return x + y;
8181
}
8282

8383
// test

0 commit comments

Comments
 (0)