Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### overArgs
|
||||
---
|
||||
title: overArgs
|
||||
tags: adapter,function,intermediate
|
||||
---
|
||||
|
||||
Creates a function that invokes the provided function with its arguments transformed.
|
||||
|
||||
@ -13,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