@szilanor/stream
    Preparing search index...

    Function distinctAsync

    • Returns an AsyncOperationFunction that yields only entries of the source Iterable without duplicates.

      Type Parameters

      • T

        The type of the elements in the source Iterable.

      Returns AsyncOperationFunction<T, T>

      An AsyncOperationFunction that yields only entries of the source Iterable without duplicates.

      const result = distinctAsync<number>([1, 2, 2, 3]);
      console.log(result); // [1, 2, 3]