Function notNullOrWhitespace

  • Returns a Stream that yields elements that are not null, undefined, or whitespace.

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

    Operation that yields elements that are not null, undefined, or whitespace.

    const result = notNullOrWhitespace<string>()(["", "a", null, "b", undefined, "c", " "]);
    console.log([...result]); // ["a", "b", "c"]