Rx.Observable.prototype.repeat(repeatCount)

Repeats the observable sequence a specified number of times. If the repeat count is not specified, the sequence repeats indefinitely.

Arguments

  1. repeatCount (Number): Number of times to repeat the sequence. If not provided, repeats the sequence indefinitely.

Returns

(Observable): The observable sequence producing the elements of the given sequence repeatedly.

Example