Test performance improvements by trimming views

This commit is contained in:
Angelos Chalaris
2019-08-16 13:47:46 +03:00
parent a2612fbf1b
commit 7df5cd4a8c
13 changed files with 27 additions and 56 deletions

View File

@ -5,11 +5,11 @@ tags: adapter,function,promise,intermediate
Converts an asynchronous function to return a promise.
*In Node 8+, you can use [`util.promisify`](https://nodejs.org/api/util.html#util_util_promisify_original)*
Use currying to return a function returning a `Promise` that calls the original function.
Use the `...rest` operator to pass in all the parameters.
*In Node 8+, you can use [`util.promisify`](https://nodejs.org/api/util.html#util_util_promisify_original)*
```js
const promisify = func => (...args) =>
new Promise((resolve, reject) =>