ReferenceskipWhile
Reference · 102
skipWhile
skipWhile
Skips values while the predicate is true.
Signature
skipWhile(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction
What it does
Checks values in order. The moment the predicate first returns false, the operator stops filtering and lets everything through.
When to use
Skipping a startup phase: loading events, zeros before the first valid value, a source warm-up.
See also
takeWhile, filter, skipUntil
script.ts
CONSOLE · Console output
Hit Run to see the result...