@szilanor/stream
    Preparing search index...

    Function truthyAsync

    • Returns an AsyncOperationFunction that yields only entries of the source Iterable with truthy value.

      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 with truthy value.

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