Variable: emptyAsync()
constemptyAsync: <Value>() =>AsyncIterable<Value>
Defined in: core.d.ts:464
An async iterable that contains zero values.
Can be used as an async iterable of any type.
Like [], but for async iterables.
Type Parameters
Value
Value = unknown
Returns
AsyncIterable<Value>
Example
import { emptyAsync, pipe, reduceAsync, toArray } from 'lfi'
console.log(
await pipe(
emptyAsync(),
reduceAsync(toArray()),
),
)
//=> []
Since
v0.0.1