ReferenceisEmpty
Reference · 70
isEmpty
isEmpty
Checks whether the stream was empty.
Signature
isEmpty(): OperatorFunction
What it does
If at least one value arrives, it emits false immediately and completes. If source completes with no values, it emits true.
When to use
Checking for empty results, a guard for a fallback, branching after a filter.
See also
defaultIfEmpty, count, EMPTY
script.ts
CONSOLE · Console output
Hit Run to see the result...