Skip to main content

type isEmpty

An AsyncReducer that outputs true if no input values are received, false otherwise.

example
await AsyncStream.of(1, 2, 3).reduce(AsyncReducer.isEmpty))
// => false

Definition

isEmpty: AsyncReducer<any, boolean>