Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/proc/tests/deps/asynciter.ts>flatten

A better way to work with processes in Deno.
Go to Latest
function flatten
Re-export
import { flatten } from "https://deno.land/x/proc@0.20.39/tests/deps/asynciter.ts";

Flatten the iterable.

Parameters

iterable: AsyncIterable<Iterable<T> | AsyncIterable<T>>

An iterable collection containing iterable collections.

Returns

AsyncIterableIterator<T>

An iterator where a level of indirection has been removed.