4.17.11
3.10.1
2.4.2
1.3.1

_.isError(value)

Checks if value is an Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, or URIError object.

Since

3.0.0

Arguments

argument
value
type
*
description
The value to check.

Returns

(array)

Example

_.isError(new Error());
// => true

_.isError(Error);
// => false
_.isError(new Error());
// => true

_.isError(Error);
// => false