Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 2.02 KB

skip.md

File metadata and controls

59 lines (46 loc) · 2.02 KB

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

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: