feat(compose/README): document functions in an array

This commit is contained in:
Julien Fontanet 2021-02-18 11:19:41 +01:00
parent 258ae64568
commit 0ec0e286ba

View File

@ -10,3 +10,9 @@ const f = compose(add2, mul3)
console.log(f(5))
// → 21
```
Functions may also be passed in an array:
```js
const f = compose([add2, mul3])
```