node_modules/truffle/build/83.bundled.js
/**
   * Generate a string out of the choices keys
   * @param  {Array}  choices
   * @param  {Number|String} default - the choice index or name to capitalize
   * @return {String} The rendered choices key string
   */
Generate a string out of the choices keys
@param  {Array}  choices
@param  {Number|String} default - the choice index or name to capitalize
@return {String} The rendered choices key string
Generate a string out of the choices keys @param { Array } choices @param { Number|String } default - the choice index or name to capitalize @return { String } The rendered choices key string
generateChoicesString(choices, defaultChoice) {
    var defIndex = choices.realLength - 1;
    if (_.isNumber(defaultChoice) && this.opt.choices.getChoice(defaultChoice)) {
      defIndex = defaultChoice;
    } else if (_.isString(defaultChoice)) {
      let index = _.findIndex(
        choices.realChoices,
        ({ value }) => value === defaultChoice
      );
      defIndex = index === -1 ? defIndex : index;
    }
    var defStr = this.opt.choices.pluck('key');
    this.rawDefault = defStr[defIndex];
    defStr[defIndex] = String(defStr[defIndex]).toUpperCase();
    return defStr.join('');
  }
generateChoicesString ( choices , defaultChoice ) { var defIndex = choices . realLength - 1 ; if ( _ . isNumber ( defaultChoice ) && this . opt . choices . getChoice ( defaultChoice ) ) { defIndex = defaultChoice ; } else if ( _ . isString ( defaultChoice ) ) { let index = _ . findIndex ( choices . realChoices , ( { value } ) => value === defaultChoice ) ; defIndex = index === - 1 ? defIndex : index ; } var defStr = this . opt . choices . pluck ( 'key' ) ; this . rawDefault = defStr [ defIndex ] ; defStr [ defIndex ] = String ( defStr [ defIndex ] ) . toUpperCase ( ) ; return defStr . join ( '' ) ; }
Generate a string out of the choices keys
 @param  {Array}  choices
 @param  {Number|String} default - the choice index or name to capitalize
 @return {String} The rendered choices key string
Generate a string out of the choices keys @param { Array } choices @param { Number|String } default - the choice index or name to capitalize @return { String } The rendered choices key string