Travis build: 1543

This commit is contained in:
30secondsofcode
2018-02-04 15:06:03 +00:00
parent 053e773f22
commit 0b0bf26df0
2 changed files with 4 additions and 12 deletions

View File

@ -4011,9 +4011,7 @@ const partial = (fn, ...partials) => (...args) => fn(...partials, ...args);
<summary>Examples</summary>
```js
function greet(greeting, name) {
return greeting + ' ' + name + '!';
}
const greet = (greeting, name) => greeting + ' ' + name + '!';
const greetHello = partial(greet, 'Hello');
greetHello('John'); // 'Hello John!'
```
@ -4037,9 +4035,7 @@ const partialRight = (fn, ...partials) => (...args) => fn(...args, ...partials);
<summary>Examples</summary>
```js
function greet(greeting, name) {
return greeting + ' ' + name + '!';
}
const greet = (greeting, name) => greeting + ' ' + name + '!';
const greetJohn = partialRight(greet, 'John');
greetJohn('Hello'); // 'Hello John!'
```