effect-io-ai

Package: effect
Module: Chunk

Chunk.isEmpty

Determines if the chunk is empty.

Example (Checking for empty chunks)

import { Chunk } from "effect"

console.log(Chunk.isEmpty(Chunk.empty())) // true
console.log(Chunk.isEmpty(Chunk.make(1, 2, 3))) // false

Signature

declare const isEmpty: <A>(self: Chunk<A>) => boolean

Source

Since v2.0.0