Sha256: f70df2fdbbda576f441f2a5a4fc73f2247bdc69fa920d53fad597a7ca7887a94

Contents?: true

Size: 1.32 KB

Versions: 49

Compression:

Stored size: 1.32 KB

Contents

/** PURE_IMPORTS_START .._operators_skipLast PURE_IMPORTS_END */
import { skipLast as higherOrder } from '../operators/skipLast';
/**
 * Skip the last `count` values emitted by the source Observable.
 *
 * <img src="./img/skipLast.png" width="100%">
 *
 * `skipLast` returns an Observable that accumulates a queue with a length
 * enough to store the first `count` values. As more values are received,
 * values are taken from the front of the queue and produced on the result
 * sequence. This causes values to be delayed.
 *
 * @example <caption>Skip the last 2 values of an Observable with many values</caption>
 * var many = Rx.Observable.range(1, 5);
 * var skipLastTwo = many.skipLast(2);
 * skipLastTwo.subscribe(x => console.log(x));
 *
 * // Results in:
 * // 1 2 3
 *
 * @see {@link skip}
 * @see {@link skipUntil}
 * @see {@link skipWhile}
 * @see {@link take}
 *
 * @throws {ArgumentOutOfRangeError} When using `skipLast(i)`, it throws
 * ArgumentOutOrRangeError if `i < 0`.
 *
 * @param {number} count Number of elements to skip from the end of the source Observable.
 * @returns {Observable<T>} An Observable that skips the last count values
 * emitted by the source Observable.
 * @method skipLast
 * @owner Observable
 */
export function skipLast(count) {
    return higherOrder(count)(this);
}
//# sourceMappingURL=skipLast.js.map

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
govuk_publishing_components-17.8.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-17.7.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-17.6.1 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-17.6.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-17.5.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-17.4.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-17.3.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-17.2.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-17.1.1 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-17.1.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-17.0.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-16.29.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-16.28.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-16.27.1 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-16.27.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-16.26.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-16.25.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-16.24.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-16.23.0 node_modules/rxjs/_esm5/operator/skipLast.js
govuk_publishing_components-16.22.0 node_modules/rxjs/_esm5/operator/skipLast.js