A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sindresorhus/observable-to-promise below:

sindresorhus/observable-to-promise: Convert an Observable to a Promise

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4