We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65a1569 commit 9449ff6Copy full SHA for 9449ff6
1 file changed
web/src/pages/challenges/functions.mdx
@@ -165,12 +165,12 @@ function multiply(num1) {
165
- The arguments can be 1 or multiple, and the actual function will be called once the count of expected arguments are reached
166
167
```js copy
168
-function curryFunc(func) {
169
- return function curry(...ip) {
170
- if(ip.length < func.length) {
171
- return curry.bind(this, ...ip);
+function curryFunc(fn) {
+ return function curry(...args) {
+ if(args.length < fn.length) {
+ return curry.bind(null, ...args);
172
}
173
- return func(...ip);
+ return fn(...args);
174
175
176
0 commit comments