Use full name for reduce

This commit is contained in:
conblem
2017-12-12 17:03:14 +01:00
parent 741e86307f
commit 2a6a2b2057
2 changed files with 11 additions and 1 deletions

View File

@ -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);