How to convert callback to Promise in Javascript
Issue #416
| 1 | // @flow | 
| 1 | const videos = await toPromise(callback) | 
If a function accepts many parameters, we need to curry https://onmyway133.github.io/blog/Curry-in-Swift-and-Javascript/
| 1 | function curry2(f) { |