skip

연산자(operator) 정의: skip(the: Number): Observable

Skip the provided number of emitted values.

Examples

Example 1: Skipping values before emission

( jsBin | jsFiddle )

//emit every 1s
const source = Rx.Observable.interval(1000);
//skip the first 5 emitted values
const example = source.skip(5);
//output: 5...6...7...8........
const subscribe = example.subscribe(val => console.log(val));

Additional Resources


:file_folder: Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/operator/skip.ts

results matching ""

    No results matching ""