BACK
Referencedebounce
Reference · 53

debounce

Waits for silence whose duration is set by an Observable factory.

Signature

debounce(durationSelector: (value: T) => ObservableInput): MonoTypeOperatorFunction

What it does

For each value it starts durationSelector. If a new value arrives before that Observable completes, the old one is dropped; only the last stable value gets through.

When to use

A dynamic debounce: the delay depends on string length, event type, load, or user settings.

See also

debounceTime, audit, throttle

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