Back to Rxjs

This is RxJS v 4. Find the latest version here

doc/api/core/operators/skip.md

4.1.02.0 KB
Original Source

This is RxJS v 4. Find the latest version here

Rx.Observable.prototype.skip(count)

Bypasses a specified number of elements in an observable sequence and then returns the remaining elements.

Arguments

  1. count (Number): The number of elements to skip before returning the remaining elements.

Returns

(Observable): An observable sequence that contains the elements that occur after the specified index in the input sequence.

Example

js
var source = Rx.Observable.range(0, 5)
    .skip(3);

var subscription = source.subscribe(
    function (x) {
        console.log('Next: ' + x);
    },
    function (err) {
        console.log('Error: ' + err);
    },
    function () {
        console.log('Completed');
    });

// => Next: 3
// => Next: 4
// => Completed

Location

File:

Dist:

Prerequisites:

  • None

NPM Packages:

NuGet Packages:

Unit Tests: