@szilanor/stream
    Preparing search index...

    Function notNull

    • Returns an OperationFunction that yields elements that are not null.

      Type Parameters

      • T

        Type of items in the source.

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

      An OperationFunction that yields elements that are not null.

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