Returns an AsyncOperationFunction that yields the inner entries of the result produced by the function.
The type of the elements in the source Iterable.
The type of the elements in the result Iterable.
The function to use to map the entries.
An AsyncOperationFunction that yields the inner entries of the result produced by the function.
const result = flatMapAsync<number, number>([1, 2, 3], (value) => [value, value * 2]);console.log(result); // [1, 2, 2, 4, 3, 6] Copy
const result = flatMapAsync<number, number>([1, 2, 3], (value) => [value, value * 2]);console.log(result); // [1, 2, 2, 4, 3, 6]
Returns an AsyncOperationFunction that yields the inner entries of the result produced by the function.