(u: unknown): u is NoSuchElementErrorChecks whether an arbitrary value is a NoSuchElementError.
Example (Checking the runtime type)
import { Cause } from "effect"
console.log(Cause.isNoSuchElementError(new Cause.NoSuchElementError())) // true
console.log(Cause.isNoSuchElementError("nope")) // falseguards
Source effect/Cause.ts:12071 lines
export const const isNoSuchElementError: (
u: unknown
) => u is NoSuchElementError
Checks whether an arbitrary value is a NoSuchElementError.
Example (Checking the runtime type)
import { Cause } from "effect"
console.log(Cause.isNoSuchElementError(new Cause.NoSuchElementError())) // true
console.log(Cause.isNoSuchElementError("nope")) // false
isNoSuchElementError: (u: unknownu: unknown) => u: unknownu is NoSuchElementError = import corecore.const isNoSuchElementError: (
u: unknown
) => u is Cause.NoSuchElementError
isNoSuchElementError