effect-io-ai

Package: effect
Module: Array

Array.isReadonlyArrayEmpty

Checks whether a ReadonlyArray is empty, narrowing the type to readonly [].

Example (Checking for an empty readonly array)

import { Array } from "effect"

console.log(Array.isReadonlyArrayEmpty([])) // true
console.log(Array.isReadonlyArrayEmpty([1, 2, 3])) // false

See

Signature

declare const isReadonlyArrayEmpty: <A>(self: ReadonlyArray<A>) => self is readonly []

Source

Since v4.0.0