Linted everything, removed semistandard

This commit is contained in:
Angelos Chalaris
2018-10-18 23:38:01 +03:00
parent 1eb609cd90
commit 1fb3e65cca
27 changed files with 55 additions and 194 deletions

View File

@ -11,9 +11,9 @@ const call = (key, ...args) => context => context[key](...args);
```js
Promise.resolve([1, 2, 3])
.then(call('map', x => 2 * x))
.then(console.log); //[ 2, 4, 6 ]
.then(console.log); // [ 2, 4, 6 ]
const map = call.bind(null, 'map');
Promise.resolve([1, 2, 3])
.then(map(x => 2 * x))
.then(console.log); //[ 2, 4, 6 ]
.then(console.log); // [ 2, 4, 6 ]
```