function isError(x) {
  return x instanceof Error || (isString(x.message) && x.constructor && isNumber(x.constructor.stackTraceLimit))
}
Check if value is Error
@param x - Object to check
@return {Boolean} If value is error
@example
isError(new Error()) // True