title: Find the time closest to current time with 5 date objects javascript
body: <p>I have the current time as currentTime.</p>
  
  <p>And I have 5 date objects:</p>
  
  <p>a = 2:20 am
  b = 2:40 am
  c = 3:00 am
  d = 4:00 pm
  e = 6:00 pm</p>
  
  <p>The time is 3:30 pm</p>
  
  <p>Now, keeping in mind that a to e have successfully been turned into Date() objects.</p>
  
  <p>How would I cycle through those 5, given the current time, to determine which time comes closest to the current time, but after it. So for instance I want to find in this case that d is the next time coming.</p>
  
  <p>I'm just not sure of the way to do that.</p>