lib/util/prompt-suggestion.js
function (question, defaultValue) {
  // For simplicity we uncheck all boxes and
  // use .default to set the active ones.
  _.each(question.choices, function (choice) {
    if (typeof choice === 'object') {
      choice.checked = false;
    }
  });

  return defaultValue;
}
function (question, defaultValue) {
  // For simplicity we uncheck all boxes and
  // use .default to set the active ones.
  _.each(question.choices, function (choice) {
    if (typeof choice === 'object') {
      choice.checked = false;
    }
  });

  return defaultValue;
}
function ( question , defaultValue ) { // For simplicity we uncheck all boxes and // use .default to set the active ones. _ . each ( question . choices , function ( choice ) { if ( typeof choice === 'object' ) { choice . checked = false ; } } ) ; return defaultValue ; }
Returns the default value for a checkbox.

@param  {Object} question Inquirer prompt item
@param  {*} defaultValue  The stored default value
@return {*}               Default value to set
@private
Returns the default value for a checkbox .