effect-io-ai

Package: effect
Module: Array

Array.isArrayEmpty

Checks whether a mutable Array is empty, narrowing the type to [].

Example (Checking for an empty array)

import { Array } from "effect"

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

See

Signature

declare const isArrayEmpty: <A>(self: Array<A>) => self is []

Source

Since v4.0.0