The skip() operator returns an Observable which bypasses a given number of elements from the beginning and propagates the others until the completion of the Observable. It has the following signature:
The only parameter is mandatory:
- count: This is the number of elements to bypass
In the following example, we will use the skip() operator to bypass the first element in the Observable:
Rx.Observable .of(1,2,3) .skip(1) .subscribe((i)=>console.log(i));
If you run this code, it will print the following:
This operation is illustrated in the following diagram:
This operator can be used ...