distinct
signature: distinct(keySelector?, flushes?): Observable
distinct(keySelector?, flushes?): Observable
Emits items emitted that are distinct based on any previously emitted item.
Examples
Example 1: distinct without selector
( StackBlitz )
Example 2: distinct with key selector
( StackBlitz )
Additional Resources
distinct 📰 - Official docs
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/distinct.ts
Last updated