fix(compose): update README

This commit is contained in:
Julien Fontanet 2021-02-18 11:27:24 +01:00
parent a8ac6fc738
commit ba6baaec0a

View File

@ -29,6 +29,27 @@ console.log(f(5))
// → 21
```
Functions may also be passed in an array:
```js
const f = compose([add2, mul3])
```
Options can be passed as first parameters:
```js
const f = compose(
{
// compose async functions
async: true,
// compose from right to left
right: true,
},
[add2, mul3]
)
```
## Contributions
Contributions are _very_ welcomed, either on the documentation or on