isError
Checks if a value is an Error instance.
Available since v2.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”value is Error — True if value is an Error (or subclass like TypeError, RangeError, etc.)
