Promisify an observable by subscribing to it.
npm install p-observable
const pObservable = require("p-observable");
(async () => {
const result = await pObservable(observable);
console.log(result);
})();
Type: observable
The observable to promisify.