Returns an AsyncOperationFunction that yields only entries of the source Iterable without duplicates.
The type of the elements in the source Iterable.
The function to use to compare the elements.
An AsyncOperationFunction that yields only entries of the source Iterable without duplicates.
const result = distinctByAsync<number>([1, 2, 2, 3], (a, b) => a === b);console.log(result); // [1, 2, 3] Copy
const result = distinctByAsync<number>([1, 2, 2, 3], (a, b) => a === b);console.log(result); // [1, 2, 3]
Returns an AsyncOperationFunction that yields only entries of the source Iterable without duplicates.