Function falsy

  • Returns a Stream that yields elements that are falsy.

    Type Parameters

    • T

      Type of items in the source.

    Returns OperationFunction<T, T>

    Operation that yields elements that are falsy.

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