isError source npm
_.isError(value)
Checks if value is an Error, EvalError, RangeError, ReferenceError,
SyntaxError, TypeError, or URIError object.
Arguments
- value (*)
The value to check.
Returns (boolean)
Returns true if value is an error object, else false.
Example
_.isError(new Error);
// => true
_.isError(Error);
// => false