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 falseArguments
| Arg | Type | Defaults |
|---|---|---|
val | any |
Return
| Type |
|---|
boolean |