4 lines
151 B
JavaScript
4 lines
151 B
JavaScript
|
exports.deferredToPromise = deferred =>
|
||
|
// eslint-disable-next-line more/no-then
|
||
|
new Promise((resolve, reject) => deferred.then(resolve, reject));
|