Returns a Stream that yields elements that are not null, undefined, or empty.
null
undefined
Type of items in the source.
Operation that yields elements that are not null, undefined, or empty.
const result = notNullOrEmpty<string>()(["", "a", null, "b", undefined, "c"]);console.log([...result]); // ["a", "b", "c"] Copy
const result = notNullOrEmpty<string>()(["", "a", null, "b", undefined, "c"]);console.log([...result]); // ["a", "b", "c"]
Returns a Stream that yields elements that are not
null
,undefined
, or empty.