@hyperjump/pact
Preparing search index...
async
flatten
Variable flatten
Const
flatten
:
<
A
>
(
iterator
:
NestedIterable
<
A
>
|
NestedAsyncIterable
<
A
>
,
depth
?:
number
,
)
=>
AsyncGenerator
<
A
|
NestedIterable
<
A
>
|
NestedAsyncIterable
<
A
>
>
Same as
flatten
, but works with AsyncGenerators.
Type declaration
<
A
>
(
iterator
:
NestedIterable
<
A
>
|
NestedAsyncIterable
<
A
>
,
depth
?:
number
,
)
:
AsyncGenerator
<
A
|
NestedIterable
<
A
>
|
NestedAsyncIterable
<
A
>
>
Type Parameters
A
Parameters
iterator
:
NestedIterable
<
A
>
|
NestedAsyncIterable
<
A
>
Optional
depth
:
number
Returns
AsyncGenerator
<
A
|
NestedIterable
<
A
>
|
NestedAsyncIterable
<
A
>
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@hyperjump/pact
Loading...
Same as
flatten
, but works with AsyncGenerators.