W3cubDocs

/RxJS

skipWhile

function stable

Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds true, but emits all further source items as soon as the condition becomes false.

skipWhile<T>(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction<T>

Parameters

predicate

A function to test each item emitted from the source Observable.

Returns

MonoTypeOperatorFunction<T>: An Observable that begins emitting items emitted by the source Observable when the specified predicate becomes false.

Description

skipWhile marble diagram

© 2015–2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/operators/skipWhile