Fix parameter reference error in the usage

a small mistake found in reading.
This commit is contained in:
lvzhenbang
2017-12-25 11:51:29 +08:00
committed by GitHub
parent d9e358990c
commit 1ab5c873d3

View File

@ -3,8 +3,8 @@
Curries a function. Curries a function.
Use recursion. Use recursion.
If the number of provided arguments (`args`) is sufficient, call the passed function `f`. If the number of provided arguments (`args`) is sufficient, call the passed function `fn`.
Otherwise, return a curried function `f` that expects the rest of the arguments. Otherwise, return a curried function `fn` that expects the rest of the arguments.
If you want to curry a function that accepts a variable number of arguments (a variadic function, e.g. `Math.min()`), you can optionally pass the number of arguments to the second parameter `arity`. If you want to curry a function that accepts a variable number of arguments (a variadic function, e.g. `Math.min()`), you can optionally pass the number of arguments to the second parameter `arity`.
```js ```js