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