@hyperjump/pact
Preparing search index...
async
head
Variable head
Const
head
:
<
A
>
(
iterator
:
AsyncIterable
<
A
>
)
=>
Promise
<
A
|
undefined
>
Same as
head
, but works with AsyncGenerators.
Type declaration
<
A
>
(
iterator
:
AsyncIterable
<
A
>
)
:
Promise
<
A
|
undefined
>
Type Parameters
A
Parameters
iterator
:
AsyncIterable
<
A
>
Returns
Promise
<
A
|
undefined
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@hyperjump/pact
Loading...
Same as
head
, but works with AsyncGenerators.