Update overArgs.md
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: overArgs
|
||||
tags: adapter,function,intermediate
|
||||
tags: function,intermediate
|
||||
---
|
||||
|
||||
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 fn = overArgs((x, y) => [x, y], [square, double]);
|
||||
fn(9, 3); // [81, 6]
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user