web-installer/src/utils/helpers.js
/**
 * @param value is the variable to check the channel name against
 * @param configs is a list of configuration files which need to be iterated
 */
@param value is the variable to check the channel name against
@param configs is a list of configuration files which need to be iterated
@param value is the variable to check the channel name against @param configs is a list of configuration files which need to be iterated
function checkChannelName(value, ...configs) {
  for (let i = 0; i < configs.length; i += 1) {
    const config = configs[i];
    for (let j = 0; j < config.allIds.length; j += 1) {
      if (config.byId[config.allIds[j]].channel_name === value) {
        return false;
      }
    }
  }
  return true;
}
function checkChannelName ( value , ... configs ) { for ( let i = 0 ; i < configs . length ; i += 1 ) { const config = configs [ i ] ; for ( let j = 0 ; j < config . allIds . length ; j += 1 ) { if ( config . byId [ config . allIds [ j ] ] . channel_name === value ) { return false ; } } } return true ; }
@param value is the variable to check the channel name against
 @param configs is a list of configuration files which need to be iterated
@param value is the variable to check the channel name against @param configs is a list of configuration files which need to be iterated