Package: effect
Module: Iterable
Checks whether an Iterable is empty.
Example (Checking for emptiness)
import { Iterable } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(Iterable.isEmpty([]), true)
assert.deepStrictEqual(Iterable.isEmpty([1, 2, 3]), false)
Signature
declare const isEmpty: <A>(self: Iterable<A>) => self is Iterable<never>
Since v2.0.0