BACK
ReferenceignoreElements
Reference · 69

ignoreElements

ignoreElements

rxjs.dev

Ignores next values but passes error/complete through.

Signature

ignoreElements(): OperatorFunction

What it does

All ordinary values are dropped. The source's error and completion keep their behavior.

When to use

When you don't need the values but do care about completion: a fire-and-forget effect, waiting for complete, a side-effect chain via tap.

See also

tap, finalize

script.ts // TypeScript
CONSOLE · Console output
Hit Run to see the result...