Hyperlinkv0.8.0-beta.28

Array

Array.isReadonlyArrayEmptyconsteffect/Array.ts:840
<A>(self: ReadonlyArray<A>): self is readonly []

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
Source effect/Array.ts:8401 lines
export const isReadonlyArrayEmpty: <A>(self: ReadonlyArray<A>) => self is readonly [] = isArrayEmpty as any
Referenced by 1 symbols