title: How to merge days with similar opening hours
body: <p>I'm trying to write a javascript function to merge days with similar opening hours of a store together. For example, if we have:</p>
  
  <p>"hours": [
  "Friday 11:00am - 3:00pm, 5:00pm - 10:00pm",
  "Monday 11:00am - 3:00pm, 5:00pm - 9:30pm",
  "Saturday 12:00pm - 10:00pm",
  "Sunday 12:00pm - 9:30pm",
  "Thursday 11:00am - 3:00pm, 5:00pm - 9:30pm",
  "Tuesday 11:00am - 3:00pm, 5:00pm - 9:30pm",
  "Wednesday 11:00am - 3:00pm, 5:00pm - 9:30pm"
  ],</p>
  
  <p>I want the code to simplify it to:</p>
  
  <p>"hours": [
  "Mo-Sa 11:00-14:30",
  "Mo-Th 17:00-21:30",
  "Fr-Sa 17:00-22:00"
  ],</p>
  
  <p>Is there a way of accomplishing this without a long list of <code>if/else</code> or <code>case</code> statements? </p>