Skip to content

isError

Determine whether the input value is an Error object.

Usage

ts
import { isError } from 'rattail'

isError(new Error('message')) // return true

Arguments

ArgTypeDefaults
valany

Return

Type
boolean