title: JavaScript check if time ranges overlap
body: <p>I have e.g. an array with 2 objects (myObject1 and myObject2 like ).
  Now when I add an third object I will check if time range overlaps.
  Actually I don't know how I can do this in a performant way. </p>
  
  <p>var myObjectArray = [];</p>
  
  <pre><code>var myObject1 = {};
  myObject1.startTime = '08:00';
  myObject1.endTime = '12:30';
  ...
  
  var myObject2 = {};
  myObject2.startTime = '11:20';
  myObject2.endTime = '18:30';
  ...
  
  myObjectArray.push(myObject1);
  myObjectArray.push(myObject2);
  </code></pre>