lib/complexTypes/RTCStatsIceCandidatePairState.js
function checkRTCStatsIceCandidatePairState(key, value)
{
  if(typeof value != 'string')
    throw SyntaxError(key+' param should be a String, not '+typeof value);

  if(!value.match('frozen|waiting|inprogress|failed|succeeded|cancelled'))
    throw SyntaxError(key+' param is not one of [frozen|waiting|inprogress|failed|succeeded|cancelled] ('+value+')');
}
function checkRTCStatsIceCandidatePairState(key, value)
{
  if(typeof value != 'string')
    throw SyntaxError(key+' param should be a String, not '+typeof value);

  if(!value.match('frozen|waiting|inprogress|failed|succeeded|cancelled'))
    throw SyntaxError(key+' param is not one of [frozen|waiting|inprogress|failed|succeeded|cancelled] ('+value+')');
}
function checkRTCStatsIceCandidatePairState ( key , value ) { if ( typeof value != 'string' ) throw SyntaxError ( key + ' param should be a String, not ' + typeof value ) ; if ( ! value . match ( 'frozen|waiting|inprogress|failed|succeeded|cancelled' ) ) throw SyntaxError ( key + ' param is not one of [frozen|waiting|inprogress|failed|succeeded|cancelled] (' + value + ')' ) ; }
Represents the state of the checklist for the local and remote candidates in
a pair.

@typedef core/complexTypes.RTCStatsIceCandidatePairState

@type {(frozen|waiting|inprogress|failed|succeeded|cancelled)}
 
Checker for {@link module:core/complexTypes.RTCStatsIceCandidatePairState}

@memberof module:core/complexTypes

@param {external:String} key
@param {module:core/complexTypes.RTCStatsIceCandidatePairState} value
Represents the state of the checklist for the local and remote candidates in a pair .