Travis build: 1498

This commit is contained in:
30secondsofcode
2018-01-31 17:08:56 +00:00
parent 68c589326b
commit 2bee95ff1c
2 changed files with 8 additions and 14 deletions

View File

@ -574,13 +574,10 @@ const overArgs = (fn, transforms) => (...args) => fn(...args.map((val, i) => tra
<summary>Examples</summary>
```js
var func = overArgs(
function(x, y) {
return [x, y];
},
[square, doubled]
);
func(9, 3); // [81, 6]
const square = n => n * n;
const double = n => n * 2;
const fn = overArgs((x, y) => [x, y], [square, double]);
fn(9, 3); // [81, 6]
```
</details>