distinctUntilKeyChanged
signature: distinctUntilKeyChanged(key, compare: fn): Observable
distinctUntilKeyChanged(key, compare: fn): Observable
Only emit when the specified key value has changed
Examples
Example 1: Compare based on key
( StackBlitz )
Example 2: Keyboard events
( StackBlitz )
Additional Resources
distinctUntilKeyChanged 📰 - Official docs
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/distinctUntilKeyChanged.ts
Last updated