Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
function notErr
import { notErr } from "https://deno.land/x/earthstar@v9.3.3/src/util/errors.ts";

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

Parameters

x: T | Error