function isError$1(wat) {
    switch (objectToString$4.call(wat)) {
        case '[object Error]':
        case '[object Exception]':
        case '[object DOMException]':
            return true;
        default:
            return isInstanceOf(wat, Error);
    }
}
Checks whether given value's type is one of a few Error or Error-like
{@link isError}.

@param wat A value to be checked.
@returns A boolean representing the result.