- Preparing search index...
- The search index is not available
Dappetizer
- deduplicate<T>(getKey: ((value: T) => string)): ((source: Wrappable<T>) => IterableIterator<T>)
-
Parameters
-
getKey: ((value: T) => string)
-
- (value: T): string
-
Returns string
Returns ((source: Wrappable<T>) => IterableIterator<T>)
-
- (source: Wrappable<T>): IterableIterator<T>
-
Returns IterableIterator<T>
- deduplicate<T>(getKey: ((value: T) => string), source: Wrappable<T>): IterableIterator<T>
-
Parameters
-
getKey: ((value: T) => string)
-
- (value: T): string
-
Returns string
-
source: Wrappable<T>
Returns IterableIterator<T>
Gets a function which deduplicates items of an iterable by specified key. It can be chained using a pipe().