Description updated and snippet tested

This commit is contained in:
Angelos Chalaris
2018-01-28 14:28:57 +02:00
parent 75a2b9e9ff
commit 50f64e374c
6 changed files with 1531 additions and 26 deletions

View File

@ -1,8 +1,9 @@
### pipeAsyncFunctions
Performs left-to-right function composition.
Performs left-to-right function composition for asynchronous functions.
Use `Array.reduce()` with the spread operator (`...`) to perform left-to-right function composition using `Promise.then()`. The functions can return a combination of: simple values, `Promise`'s, or they can be defined as `async` ones returning through `await`.
Use `Array.reduce()` with the spread operator (`...`) to perform left-to-right function composition using `Promise.then()`.
The functions can return a combination of: simple values, `Promise`'s, or they can be defined as `async` ones returning through `await`.
All functions must be unary.
```js