Convert an Observable to a Promise
npm install observable-to-promise
import observableToPromise from 'observable-to-promise';
const promise = observableToPromise(Observable.of(1, 2));
console.log(await promise);
//=> [1, 2]
- is-observable - Check if a value is an Observable