I\'m using the following modules: moment, moment-range, moment-ranges.
It\'s easy to merge any intersecting ranges by passing in an array of individual ranges to moment.r