Hyperlinkv0.8.0-beta.28

Cause

Cause.isNoSuchElementErrorconsteffect/Cause.ts:1207
(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
guards
Source effect/Cause.ts:12071 lines
export const isNoSuchElementError: (u: unknown) => u is NoSuchElementError = core.isNoSuchElementError