Travis build: 1467

This commit is contained in:
30secondsofcode
2018-01-28 12:55:37 +00:00
parent b005826fde
commit d1f222bc62
3 changed files with 39 additions and 3 deletions

View File

@ -5,8 +5,7 @@ Creates a function that invokes the provided function with its arguments transfo
Use `Array.map()` to apply `transforms` to `args` in combination with the spread operator (`...`) to pass the transformed arguments to `fn`.
```js
const overArgs = (fn, transforms) => (...args) =>
fn(...args.map((val, i) => transforms[i](val)));
const overArgs = (fn, transforms) => (...args) => fn(...args.map((val, i) => transforms[i](val)));
```
```js