wallet-core/node_modules/observable-to-promise
2017-12-27 19:34:16 +01:00
..
index.js add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
license add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
package.json add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
readme.md add linting (and some initial fixes) 2017-05-28 00:40:43 +02: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