Travis build: 1467
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user