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