Skip to content

Commit 0da735f

Browse files
authored
fix: curry fn apply no result
1 parent 0d32c25 commit 0da735f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function curry(fn, ...rest) {
1111
args = rest.concat(args);
1212

1313
if (args.length >= functionParamsLen) {
14-
fn.apply(this, args);
14+
return fn.apply(null, args);
1515
} else {
1616
return curry(fn, ...args);
1717
}

0 commit comments

Comments
 (0)