wallet-core/node_modules/observable-to-promise
2018-02-20 17:16:29 +01:00
..
node_modules/is-observable node_modules 2018-02-20 17:16:29 +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