isError()
Determines if a value is an Error
object.
false
"Error"
will count as an error object.true
if opt_testForAnyError
is false
-ish or not given and value
is an Error
object. true
if opt_testForAnyError
is true
-ish and the type name of value
ends with "Error"
. Otherwise false
.This function directly requires the following function which is included automatically:
typeOf()