Travis build: 559

This commit is contained in:
30secondsofcode
2018-09-29 13:47:39 +00:00
parent d1aaaf61aa
commit fd8ffcd2af
20 changed files with 194 additions and 20 deletions

View File

@ -12,6 +12,9 @@ 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
```