Returns an OperationFunction that yields elements that are not null, undefined, or empty.
null
undefined
Type of items in the source.
An OperationFunction 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 an OperationFunction that yields elements that are not
null,undefined, or empty.