Skip to main content

Variable: emptyAsync

const emptyAsync: AsyncIterable<any>

An async iterable that contains zero values.

Can be used as an async iterable of any type.

Like [], but for async iterables.

Example

import { emptyAsync, pipe, reduceAsync, toArray } from 'lfi'

console.log(
await pipe(
emptyAsync,
reduceAsync(toArray()),
),
)
//=> []
Playground

Since

v0.0.1

Defined in

core.d.ts:389