skip
signature: skip(the: Number): Observable
skip(the: Number): ObservableSkip the provided number of emitted values.
Why use skip?
skip?Examples
// RxJS v6+
import { interval } from 'rxjs';
import { skip } from 'rxjs/operators';
//emit every 1s
const source = interval(1000);
//skip the first 5 emitted values
const example = source.pipe(skip(5));
//output: 5...6...7...8........
const subscribe = example.subscribe(val => console.log(val));Example 2: Short hand for a specific filter use case
Additional Resources
Last updated