unboundedpress/node_modules/observable-to-promise
2019-07-23 04:28:47 +00:00
..
index.js initial commit 2019-07-23 04:28:47 +00:00
license initial commit 2019-07-23 04:28:47 +00:00
package.json initial commit 2019-07-23 04:28:47 +00:00
readme.md initial commit 2019-07-23 04:28:47 +00:00

observable-to-promise Build Status

Convert an Observable to a Promise

Install

$ npm install --save observable-to-promise

Usage

const observableToPromise = require('observable-to-promise');

observableToPromise(Observable.of(1, 2)).then(result => {
	console.log(result);
	//=> [1, 2]
});

License

MIT © Sindre Sorhus