Loading problem…
Implement a utility similar to util.promisify for Node-style callbacks.
util.promisify
Implement:
function promisify(fn, thisArg) {}
Behavior:
fn
(err, value)
err
value
thisArg
2 hints available with Pro