1 var baseGetTag = require(
'./_baseGetTag'),
2 isObjectLike = require(
'./isObjectLike'),
3 isPlainObject = require(
'./isPlainObject');
6 var domExcTag =
'[object DOMException]',
7 errorTag =
'[object Error]';
27 function isError(value) {
28 if (!isObjectLike(value)) {
31 var tag = baseGetTag(value);
32 return tag == errorTag || tag == domExcTag ||
33 (typeof value.message ==
'string' && typeof value.name ==
'string' && !isPlainObject(value));
36 module.exports = isError;