Front end of the Slack clone application.

startWith.js 1002B

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