feat(compose/README): document functions in an array
This commit is contained in:
parent
258ae64568
commit
0ec0e286ba
@ -10,3 +10,9 @@ const f = compose(add2, mul3)
|
|||||||
console.log(f(5))
|
console.log(f(5))
|
||||||
// → 21
|
// → 21
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Functions may also be passed in an array:
|
||||||
|
|
||||||
|
```js
|
||||||
|
const f = compose([add2, mul3])
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user