Skip to content

isDOMException

Determine whether the input value is a DOMException object.

Usage

ts
import { isDOMException } from 'rattail'

isDOMException(new DOMException('An error occurred')) // return true
isDOMException(new Error('An error occurred')) // return false

Arguments

ArgTypeDefaults
valany

Return

Type
boolean