skip
type skip = (count: number) => <T>(stream: Observable<T>) => Observable<T>
stream: -a-b-c-d-e->
skip(2)(stream): -----c-d-e->
Skips first count
values emitted by the source Observable.
import { of } from 'light-observable/observable'
import { skip } from 'light-observable/operators'
const stream = of(1, 2, 3, 4, 5).pipe(
skip(2)
)
stream.subscribe(console.log)
/*
-> 3
-> 4
-> 5
*/
Also available as an Observable creator:
import { skip, of } from 'light-observable/observable'
const stream = skip(2, of(1, 2, 3, 4, 5))
stream.subscribe(console.log)
/*
-> 3
-> 4
-> 5
*/