Check if Array contains a specific time
<p>I have one array that contains some time intervals, I want to check if the array the current time(HH:mm) is inside the array or not . Time format may be <code>30 min or 60 minutes</code> interval <code>(9:30,10:30 || 9:00,10:00)</code> .Array described below</p>

<p><a href="https://i.stack.imgur.com/L6U2n.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L6U2n.jpg" alt="enter image description here"></a></p>

<blockquote>
  <p>arrayvals =
  ["00:00","04:00","09:00","11:00","12:00","14:00","17:00"];</p>
</blockquote>

<p>I want to check if the time <code>"09:17"</code> or the current time is inside the array with index 2. "09:00" means 9-10 interval.</p>