Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### partialRight
|
||||
---
|
||||
title: partialRight
|
||||
tags: function,intermediate
|
||||
---
|
||||
|
||||
Creates a function that invokes `fn` with `partials` appended to the arguments it receives.
|
||||
|
||||
@ -12,4 +15,4 @@ const partialRight = (fn, ...partials) => (...args) => fn(...args, ...partials);
|
||||
const greet = (greeting, name) => greeting + ' ' + name + '!';
|
||||
const greetJohn = partialRight(greet, 'John');
|
||||
greetJohn('Hello'); // 'Hello John!'
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user