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
:newspaper: - Official docs
:file_folder: Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/distinctUntilKeyChanged.ts
Last updated