Returns an AsyncOperationFunction that yields only entries of the source Iterable with truthy value.
The type of the elements in the source Iterable.
An AsyncOperationFunction that yields only entries of the source Iterable with truthy value.
const result = truthyAsync<number>([1, 2, null, undefined, 3]);console.log(result); // [1, 2, 3] Copy
const result = truthyAsync<number>([1, 2, null, undefined, 3]);console.log(result); // [1, 2, 3]
Returns an AsyncOperationFunction that yields only entries of the source Iterable with truthy value.