Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/util/errors.ts>notErr

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
function notErr
import { notErr } from "https://deno.land/x/earthstar@v10.0.0-beta.7/src/util/errors.ts";

Check if any value is a subclass of EarthstarError (return false) or not (return true)

Parameters

x: T | Error