Returns an OperationFunction that yields elements that are not null.
null
Type of items in the source.
An OperationFunction that yields elements that are not null.
const result = notNull<number>()([1, null, 2, null, 3]);console.log([...result]); // [1, 2, 3] Copy
const result = notNull<number>()([1, null, 2, null, 3]);console.log([...result]); // [1, 2, 3]
Returns an OperationFunction that yields elements that are not
null.