repeat

Returns an Observable that repeats the stream of items emitted by the source Observable at most count times.

repeat<T>(count: number = -1): MonoTypeOperatorFunction<T>

Parameters

count

Optional. Default is -1.

The number of times the source Observable items are repeated, a count of 0 will yield an empty Observable.

Returns

MonoTypeOperatorFunction<T>: An Observable that repeats the stream of items emitted by the source Observable at most count times.

Description