Add isBeforeDate, isAfterDate, isSameDate
This commit is contained in:
@ -12,9 +12,6 @@ const compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args)));
|
||||
```js
|
||||
const add5 = x => x + 5;
|
||||
const multiply = (x, y) => x * y;
|
||||
const multiplyAndAdd5 = compose(
|
||||
add5,
|
||||
multiply
|
||||
);
|
||||
const multiplyAndAdd5 = compose(add5, multiply);
|
||||
multiplyAndAdd5(5, 2); // 15
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user