Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

skipLast.d.ts 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { MonoTypeOperatorFunction } from '../types';
  2. /**
  3. * Skip the last `count` values emitted by the source Observable.
  4. *
  5. * ![](skipLast.png)
  6. *
  7. * `skipLast` returns an Observable that accumulates a queue with a length
  8. * enough to store the first `count` values. As more values are received,
  9. * values are taken from the front of the queue and produced on the result
  10. * sequence. This causes values to be delayed.
  11. *
  12. * ## Example
  13. * Skip the last 2 values of an Observable with many values
  14. * ```javascript
  15. * const many = range(1, 5);
  16. * const skipLastTwo = many.pipe(skipLast(2));
  17. * skipLastTwo.subscribe(x => console.log(x));
  18. *
  19. * // Results in:
  20. * // 1 2 3
  21. * ```
  22. *
  23. * @see {@link skip}
  24. * @see {@link skipUntil}
  25. * @see {@link skipWhile}
  26. * @see {@link take}
  27. *
  28. * @throws {ArgumentOutOfRangeError} When using `skipLast(i)`, it throws
  29. * ArgumentOutOrRangeError if `i < 0`.
  30. *
  31. * @param {number} count Number of elements to skip from the end of the source Observable.
  32. * @returns {Observable<T>} An Observable that skips the last count values
  33. * emitted by the source Observable.
  34. * @method skipLast
  35. * @owner Observable
  36. */
  37. export declare function skipLast<T>(count: number): MonoTypeOperatorFunction<T>;