Skip to content

Instantly share code, notes, and snippets.

@Jiert
Last active August 29, 2015 14:21
Show Gist options
  • Save Jiert/b318717b41c626fa4e47 to your computer and use it in GitHub Desktop.
Save Jiert/b318717b41c626fa4e47 to your computer and use it in GitHub Desktop.
Beautiful
importSchedule.startHourOptions = this._buildOptions(_.chain(_.range(0, 24)).map(function(hour){
return {text: '00'.substring(0, '00'.length - hour.toString().length) + hour.toString(), value: hour};
}).value(), importSchedule.start_hour);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment