isError
isError(
o
):o is Error
Checks whether a value is an instance of the built-in Error class.
Parameters
Section titled “Parameters”unknown
The value to test.
Returns
Section titled “Returns”o is Error
true
if o
is an Error
, otherwise false
.