Hyperlinkv0.8.0-beta.28

Array

Array.isArrayEmptyconsteffect/Array.ts:820
<A>(self: Array<A>): self is []

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
Source effect/Array.ts:8201 lines
export const isArrayEmpty = <A>(self: Array<A>): self is [] => self.length === 0
Referenced by 1 symbols