Skip to content

Commit

Permalink
docs(operator): add marbel diagramm to distinctUntilChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Zimmer committed Apr 4, 2019
1 parent 98c23b5 commit 6bf3aae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/internal/operators/distinctUntilChanged.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ export function distinctUntilChanged<T, K>(compare: (x: K, y: K) => boolean, key
/**
* Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item.
*
* If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.
* <span class="informal">It's like {@link filter}, but just emits the values that are distinct from the previous.</span>
*
* ![](distinctUntilChanged.png)
*
* If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.
* If a comparator function is not provided, an equality check is used by default.
*
* ## Example
Expand Down

0 comments on commit 6bf3aae

Please sign in to comment.