title: Check if times overlap using moment?
body: <p>I have an array of <code>[start_time, end_time]</code> time ranges like so:</p>
  
  <pre><code>let timeSegments = [];
  timeSegments.push(["02:00", "07:00"])
  timeSegments.push(["03:00", "04:00"])
  </code></pre>
  
  <p>These time segments overlap, since <code>2AM - 7AM</code> includes <code>3AM - 4AM</code></p>
  
  <p>Likewise:</p>
  
  <pre><code>let timeSegments = [];
  timeSegments.push(["14:00", "18:00"])
  timeSegments.push(["15:00", "19:00"])
  </code></pre>
  
  <p><code>2PM</code> to <code>6PM</code> overlaps with <code>3PM</code> to <code>7PM</code>.</p>
  
  <p>I'm using the momentjs library, and would like to know a way to determine if my timeSegments array contains any timeSegments that overlap? The timeSegments array can contain at most 10 <code>[start_time, end_time]</code> pairs. Thanks!</p>
  
  <p>I'd just like to know if any segments overlap (true/false), I don't need to know which of the segments overlap etc.</p>