项目原始demo,不改动
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Este repositório está arquivado. Pode ver ficheiros e cloná-lo, mas não pode fazer envios ou lançar questões ou pedidos de integração.
 
 
 
 

26 linhas
969 B

  1. "use strict";
  2. var startWith_1 = require('../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. function startWith() {
  19. var array = [];
  20. for (var _i = 0; _i < arguments.length; _i++) {
  21. array[_i - 0] = arguments[_i];
  22. }
  23. return startWith_1.startWith.apply(void 0, array)(this);
  24. }
  25. exports.startWith = startWith;
  26. //# sourceMappingURL=startWith.js.map