Update pipeFunctions.md
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: pipeFunctions
|
title: pipeFunctions
|
||||||
tags: adapter,function,intermediate
|
tags: function,intermediate
|
||||||
---
|
---
|
||||||
|
|
||||||
Performs left-to-right function composition.
|
Performs left-to-right function composition.
|
||||||
@ -17,4 +17,4 @@ const add5 = x => x + 5;
|
|||||||
const multiply = (x, y) => x * y;
|
const multiply = (x, y) => x * y;
|
||||||
const multiplyAndAdd5 = pipeFunctions(multiply, add5);
|
const multiplyAndAdd5 = pipeFunctions(multiply, add5);
|
||||||
multiplyAndAdd5(5, 2); // 15
|
multiplyAndAdd5(5, 2); // 15
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user