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

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

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
function flatten
Re-export
import { flatten } from "https://deno.land/x/proc@0.20.10/src/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.