Travis build: 391

This commit is contained in:
Travis CI
2017-12-28 08:30:19 +00:00
parent ae7fbdc16d
commit 3cbd7040e9
141 changed files with 1389 additions and 1044 deletions

View File

@ -4,12 +4,12 @@ Takes a variadic function and returns a closure that accepts an array of argumen
Use closures and the spread operator (`...`) to map the array of arguments to the inputs of the function.
```js
```js
const spreadOver = fn => argsArr => fn(...argsArr);
```
```js
const arrayMax = spreadOver(Math.max)
arrayMax([1,2,3]) // 3
arrayMax([1,2,4]) // 4
```js
const arrayMax = spreadOver(Math.max);
arrayMax([1, 2, 3]); // 3
arrayMax([1, 2, 4]); // 4
```