Skip to content

Commit

Permalink
fix: curry fn apply no result
Browse files Browse the repository at this point in the history
  • Loading branch information
Rain120 authored Apr 1, 2022
1 parent 0d32c25 commit 0da735f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion curry.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function curry(fn, ...rest) {
args = rest.concat(args);

if (args.length >= functionParamsLen) {
fn.apply(this, args);
return fn.apply(null, args);
} else {
return curry(fn, ...args);
}
Expand Down

0 comments on commit 0da735f

Please sign in to comment.