code: function checkRTCStatsIceCandidateType(key, value)
  {
    if(typeof value != 'string')
      throw SyntaxError(key+' param should be a String, not '+typeof value);
  
    if(!value.match('host|serverreflexive|peerreflexive|relayed'))
      throw SyntaxError(key+' param is not one of [host|serverreflexive|peerreflexive|relayed] ('+value+')');
  }
docs: Types of candidates
  
  @typedef core/complexTypes.RTCStatsIceCandidateType
  
  @type {(host|serverreflexive|peerreflexive|relayed)}
   
  Checker for {@link module:core/complexTypes.RTCStatsIceCandidateType}
  
  @memberof module:core/complexTypes
  
  @param {external:String} key
  @param {module:core/complexTypes.RTCStatsIceCandidateType} value