Front end of the Slack clone application.

repeat.js 646B

1234567891011121314151617
  1. import { repeat as higherOrder } from '../operators/repeat';
  2. /**
  3. * Returns an Observable that repeats the stream of items emitted by the source Observable at most count times.
  4. *
  5. * <img src="./img/repeat.png" width="100%">
  6. *
  7. * @param {number} [count] The number of times the source Observable items are repeated, a count of 0 will yield
  8. * an empty Observable.
  9. * @return {Observable} An Observable that repeats the stream of items emitted by the source Observable at most
  10. * count times.
  11. * @method repeat
  12. * @owner Observable
  13. */
  14. export function repeat(count = -1) {
  15. return higherOrder(count)(this);
  16. }
  17. //# sourceMappingURL=repeat.js.map