Update overArgs.md
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: overArgs
|
title: overArgs
|
||||||
tags: adapter,function,intermediate
|
tags: function,intermediate
|
||||||
---
|
---
|
||||||
|
|
||||||
Creates a function that invokes the provided function with its arguments transformed.
|
Creates a function that invokes the provided function with its arguments transformed.
|
||||||
@ -16,4 +16,4 @@ const square = n => n * n;
|
|||||||
const double = n => n * 2;
|
const double = n => n * 2;
|
||||||
const fn = overArgs((x, y) => [x, y], [square, double]);
|
const fn = overArgs((x, y) => [x, y], [square, double]);
|
||||||
fn(9, 3); // [81, 6]
|
fn(9, 3); // [81, 6]
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user