isError

Lang
since 3.0.0

Arguments

  • * The value to check.

Returns

boolean `true` if `value` is an error object, else `false`.

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

Example of Lodash _.isError

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

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