distinctUntilChanged module
Type aliases
Functions
Type aliases
CompareFunction
Ƭ CompareFunction: function
Defined in index.ts:6
Compare function (compares two items)
Type declaration:
▸ (item1
: T, item2
: T): boolean
Parameters:
Name | Type | Description | |
---|---|---|---|
item1 |
T | first item | |
item2 |
T | second item |
DistinctUntilChanged
Ƭ DistinctUntilChanged: function
Defined in index.ts:17
Distinct function (returns new stream with distinct items)
Type declaration:
▸ (iterable
: Iterable‹T›): IterableIterator‹T›
Parameters:
Name | Type | Description | |
---|---|---|---|
iterable |
Iterable‹T› | input stream |
Functions
distinctUntilChanged
▸ distinctUntilChanged‹T›(compareFn
: CompareFunction‹T›): DistinctUntilChanged‹T›
Defined in index.ts:30
Function to create new stream where items are distinct until changed
Type parameters:
▪ T
Parameters:
Name | Type | Description | |
---|---|---|---|
compareFn |
CompareFunction‹T› | function to compare two items |
Returns: DistinctUntilChanged‹T›
distinct function to transform stream
▸ distinctUntilChanged‹T›(compareFn
: CompareFunction‹T›, iterable
: Iterable‹T›): IterableIterator‹T›
Defined in index.ts:40
Function to create new stream where items are distinct until changed
Type parameters:
▪ T
Parameters:
Name | Type | Description | |
---|---|---|---|
compareFn |
CompareFunction‹T› | function to compare two items | |
iterable |
Iterable‹T› | input stream |
Returns: IterableIterator‹T›
output stream