title: Node - multiple date range overlaps
body: <p>I have an array of dates range, each date range has it’s own start date, end date and unique Id. I want to have all of the overlapping date ranges (knowing which range overlap with whom and on what  range, e.g. it could even be 3 dates range [1,3,8] that overlapped between 08:00-08:10 and the [1.3] overlapped between 08:00-18:15) </p>
  
  <p>I found my question over here : <a href="https://stackoverflow.com/questions/24736000/datetime-determine-whether-multiplen-datetime-ranges-overlap-each-other-in-r">Datetime -Determine whether multiple(n) datetime ranges overlap each other in R</a> 
  But the answer was in R and I didn’t manage to follow the logic </p>
  
  <p>I do know the solution of tuning minute by minute between the first start date and the last end date and check which dates range contain the minutes but I’m hoping to get more elegant solution that won’t get slow with large amount of data </p>
  
  <p>I will be happy to receive answers in C#, JavaScript, typescript, python, java or just English explanation of the logic (I prefers without third part libraries except maybe moment js) </p>