@szilanor/stream
    Preparing search index...

    Function notNullAsync

    • Returns an AsyncOperationFunction that yields only the non-null / non-undefined entries of the source Iterable.

      Type Parameters

      • T

        The type of the elements in the source Iterable.

      Returns AsyncOperationFunction<T | null | undefined, NonNullable<T>>

      An AsyncOperationFunction that yields only the non-null / non-undefined entries of the source Iterable.

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