code: function checkIceComponentState(key, value)
  {
    if(typeof value != 'string')
      throw SyntaxError(key+' param should be a String, not '+typeof value);
  
    if(!value.match('DISCONNECTED|GATHERING|CONNECTING|CONNECTED|READY|FAILED'))
      throw SyntaxError(key+' param is not one of [DISCONNECTED|GATHERING|CONNECTING|CONNECTED|READY|FAILED] ('+value+')');
  }
docs: States of an ICE component.
  
  @typedef elements/complexTypes.IceComponentState
  
  @type {(DISCONNECTED|GATHERING|CONNECTING|CONNECTED|READY|FAILED)}
   
  Checker for {@link elements/complexTypes.IceComponentState}
  
  @memberof module:elements/complexTypes
  
  @param {external:String} key
  @param {module:elements/complexTypes.IceComponentState} value