docs: function isError(val, prop) {
      if (!isValue(val) || !isObject(val))
          return false;
      var type = constant_1.toStr.call(val).toLowerCase();
      return type === '[object error]' || type === '[object domexception]' || !isEmpty(val[prop]);
  }