Returns an AsyncOperationFunction that yields the current and the index of the entry of the source Iterable.
The type of the elements in the source Iterable.
An AsyncOperationFunction that yields the current and the index of the entry of the source Iterable.
const result = withIndexAsync<number>([1, 2, 3]);console.log(result); // [[1, 0], [2, 1], [3, 2]] Copy
const result = withIndexAsync<number>([1, 2, 3]);console.log(result); // [[1, 0], [2, 1], [3, 2]]
Returns an AsyncOperationFunction that yields the current and the index of the entry of the source Iterable.