Returns a Stream that yields elements that are not null, undefined, or whitespace.
null
undefined
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"] Copy
const result = notNullOrWhitespace<string>()(["", "a", null, "b", undefined, "c", " "]);console.log([...result]); // ["a", "b", "c"]
Returns a Stream that yields elements that are not
null
,undefined
, or whitespace.