code: function isType(type, string) {
      if (isString(string) || isNumber(string)) {
          if (_regex.regex[type] && type !== 'default') {
              string = String(string);
              return _regex.regex[type].test(string);
          } else {
              throw Error('unknown type ' + type);
          }
      } else {
          throw Error('type should be string or number');
      }
  }
docs: 类型判断
  
  @param {string}  type    url tel mobilePhone email account IdCard ip...参考regex 模块导出对象的属性
  @param {string|number}  string
  @example
  
  
  ```javascript
  isType('email','user@163.com')   //=>true
  ```
  @returns {boolean}