Returns an AsyncOperationFunction that takes entries of the source Iterable while the parameter function returns true.
The type of the elements in the source Iterable.
The function to use to filter the entries.
An AsyncOperationFunction that takes entries of the source Iterable while the parameter function returns true.
const result = takeWhileAsync<number>([1, 2, 3], (value) => value < 2);console.log(result); // [1] Copy
const result = takeWhileAsync<number>([1, 2, 3], (value) => value < 2);console.log(result); // [1]
Returns an AsyncOperationFunction that takes entries of the source Iterable while the parameter function returns true.