Skip to content

Commit 9449ff6

Browse files
committed
feedback from sadanand
1 parent 65a1569 commit 9449ff6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

web/src/pages/challenges/functions.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ function multiply(num1) {
165165
- The arguments can be 1 or multiple, and the actual function will be called once the count of expected arguments are reached
166166

167167
```js copy
168-
function curryFunc(func) {
169-
return function curry(...ip) {
170-
if(ip.length < func.length) {
171-
return curry.bind(this, ...ip);
168+
function curryFunc(fn) {
169+
return function curry(...args) {
170+
if(args.length < fn.length) {
171+
return curry.bind(null, ...args);
172172
}
173-
return func(...ip);
173+
return fn(...args);
174174
}
175175
}
176176

0 commit comments

Comments
 (0)