Typo
This commit is contained in:
parent
f426fd6113
commit
48d233c305
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ More advanced implementations of currying like [_.curry](https://lodash.com/docs
|
|||
|
||||
```js
|
||||
function curry(f) {
|
||||
return function(..args) {
|
||||
return function(...args) {
|
||||
// if args.length == f.length (as many arguments as f has),
|
||||
// then pass the call to f
|
||||
// otherwise return a partial function that fixes args as first arguments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue