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

15 lines (14 loc) 597 B
import { Observable } from 'rxjs'; /** * Returns an Observable that repeats the stream of items emitted by the source Observable at most count times. * * <img src="./img/repeat.png" width="100%"> * * @param {number} [count] The number of times the source Observable items are repeated, a count of 0 will yield * an empty Observable. * @return {Observable} An Observable that repeats the stream of items emitted by the source Observable at most * count times. * @method repeat * @owner Observable */ export declare function repeat<T>(this: Observable<T>, count?: number): Observable<T>;