Use full name for reduce
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
### Pipe
|
||||
|
||||
Use `reduce()` to pass value through functions.
|
||||
Use `Array.reduce()` to pass value through functions.
|
||||
|
||||
```js
|
||||
const pipe = (...funcs) => arg => funcs.reduce((acc, func) => func(acc), arg);
|
||||
|
||||
Reference in New Issue
Block a user