This commit is contained in:
Brent Guffens 2018-01-31 13:21:43 +01:00 committed by GitHub
parent f426fd6113
commit 48d233c305
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,7 +148,7 @@ More advanced implementations of currying like [_.curry](https://lodash.com/docs
```js ```js
function curry(f) { function curry(f) {
return function(..args) { return function(...args) {
// if args.length == f.length (as many arguments as f has), // if args.length == f.length (as many arguments as f has),
// then pass the call to f // then pass the call to f
// otherwise return a partial function that fixes args as first arguments // otherwise return a partial function that fixes args as first arguments