Convert days in an array to a concise human readable string.
created with node v7.7.4
, and yarn 0.21.3
DayFormatter.formatDayRange([1,2,3,5,6,7]);
// => "Monday - Wednesday, Friday - Sunday"
- install dependencies:
yarn
- (optional) install jasmine:
yarn global add jasmine
- (jasmine)
yarn run test