Function truthy

  • Returns a Stream that yields truthy elements from the source.

    Type Parameters

    • T

      Type of items in the source.

    Returns OperationFunction<T, T>

    Operation that yields truthy elements from the source.

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