observable-to-promise
v2.0.0
Published
Convert an Observable to a Promise
Downloads
337,101
Maintainers
Readme
observable-to-promise
Convert an Observable to a Promise
Install
npm install observable-to-promise
Usage
import observableToPromise from 'observable-to-promise';
const promise = observableToPromise(Observable.of(1, 2));
console.log(await promise);
//=> [1, 2]
Related
- is-observable - Check if a value is an Observable