<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])) // falseSource effect/Array.ts:8401 lines
export const const isReadonlyArrayEmpty: <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
isReadonlyArrayEmpty: <function (type parameter) A in <A>(self: ReadonlyArray<A>): self is readonly []A>(self: readonly A[]self: interface ReadonlyArray<T>ReadonlyArray<function (type parameter) A in <A>(self: ReadonlyArray<A>): self is readonly []A>) => self: readonly A[]self is readonly [] = const isArrayEmpty: <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
isArrayEmpty as anyReferenced by 1 symbols