Travis build: 392

This commit is contained in:
Travis CI
2017-12-28 08:32:00 +00:00
parent 3cbd7040e9
commit 92db5d7595
5 changed files with 52 additions and 52 deletions

View File

@ -5,11 +5,11 @@ 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
const spreadOver = fn => argsArr => fn(...argsArr);
const spreadOver = fn => argsArr => fn(...argsArr);
```
```js
const arrayMax = spreadOver(Math.max);
arrayMax([1, 2, 3]); // 3
arrayMax([1, 2, 4]); // 4
const arrayMax = spreadOver(Math.max);
arrayMax([1, 2, 3]); // 3
arrayMax([1, 2, 4]); // 4
```