distinctUntilChanged
Returns an observable sequence that contains only distinct contiguous elements according to the keySelector and the comparer.
Arguments
[keySelector]
(Function
): A function to compute the comparison key for each element.[comparer]
(Function
): Equality comparer for computed key values. If not provided, defaults to an equality comparer function.
Returns
(Observable
): An observable sequence only containing the distinct elements, based on a computed key value, from the source sequence.
Example
Last updated
Was this helpful?