code: function checkRTCStatsType(key, value)
  {
    if(typeof value != 'string')
      throw SyntaxError(key+' param should be a String, not '+typeof value);
  
    if(!value.match('inboundrtp|outboundrtp|session|datachannel|track|transport|candidatepair|localcandidate|remotecandidate'))
      throw SyntaxError(key+' param is not one of [inboundrtp|outboundrtp|session|datachannel|track|transport|candidatepair|localcandidate|remotecandidate] ('+value+')');
  }
docs: The type of the object.
  
  @typedef core/complexTypes.RTCStatsType
  
  @type {(inboundrtp|outboundrtp|session|datachannel|track|transport|candidatepair|localcandidate|remotecandidate)}
   
  Checker for {@link core/complexTypes.RTCStatsType}
  
  @memberof module:core/complexTypes
  
  @param {external:String} key
  @param {module:core/complexTypes.RTCStatsType} value