code: function Prompt() {
    Base.apply(this, arguments);
  
    if (!this.opt.choices) {
      this.throwParamError('choices');
    }
  
    if (Array.isArray(this.opt.default)) {
      this.opt.choices.forEach(function(choice) {
        if (this.opt.default.indexOf(choice.value) >= 0) {
          choice.checked = true;
        }
      }, this);
    }
  
    this.firstRender = true;
    this.pointer = 0;
  
    // Make sure no default is set (so it won't be printed)
    this.opt.default = null;
    this.paginator = new Paginator();
  }
docs: Constructor