Front end of the Slack clone application.

1234567891011121314151617181920
  1. import { startWith as higherOrder } from '../operators/startWith';
  2. /* tslint:enable:max-line-length */
  3. /**
  4. * Returns an Observable that emits the items you specify as arguments before it begins to emit
  5. * items emitted by the source Observable.
  6. *
  7. * <img src="./img/startWith.png" width="100%">
  8. *
  9. * @param {...T} values - Items you want the modified Observable to emit first.
  10. * @param {Scheduler} [scheduler] - A {@link IScheduler} to use for scheduling
  11. * the emissions of the `next` notifications.
  12. * @return {Observable} An Observable that emits the items in the specified Iterable and then emits the items
  13. * emitted by the source Observable.
  14. * @method startWith
  15. * @owner Observable
  16. */
  17. export function startWith(...array) {
  18. return higherOrder(...array)(this);
  19. }
  20. //# sourceMappingURL=startWith.js.map