UNPKG

rxjs-compat

Version:

[![CircleCI](https://circleci.com/gh/ReactiveX/rxjs/tree/6.x.svg?style=svg)](https://circleci.com/gh/ReactiveX/rxjs/tree/6.x) [![npm version](https://badge.fury.io/js/%40reactivex%2Frxjs.svg)](http://badge.fury.io/js/%40reactivex%2Frxjs) [![Join the chat

12 lines (11 loc) 378 B
import { Observable } from 'rxjs'; /** * If the source Observable is empty it returns an Observable that emits true, otherwise it emits false. * * <img src="./img/isEmpty.png" width="100%"> * * @return {Observable} An Observable that emits a Boolean. * @method isEmpty * @owner Observable */ export declare function isEmpty<T>(this: Observable<T>): Observable<boolean>;