code: function(date, unit, localeCode) {
      var unitIndex = unit ? getUnitIndexForParamName(unit) : DAY_INDEX;
      moveToBeginningOfUnit(date, unitIndex, localeCode);
      return date;
    }
docs: *
  @method reset([unit] = 'day', [localeCode] = currentLocaleCode)
  @returns Date
  @short Resets the date to the beginning of [unit].
  @extra This method effectively resets all smaller units, pushing the date
  to the beginning of [unit]. Default is `day`, which effectively
  resets the time. [localeCode] is provided for resetting weeks, which
  is locale dependent. This method modifies the date!
  
  @example
  
  new Date().reset('day')   -> Beginning of the day
  new Date().reset('month') -> Beginning of the month
  
  @param {string} [unit]
  @param {string} [localeCode]
  
  *